import java.util.Random;
public class RandomHomework
{
public static void main(String[] args)
{
int i;
Random generator = new Random();
double randomDecimals = generator.nextDouble()-.04;
int randomNumber = generator.nextInt(9)+10;
for(i = 0; i > 100; i++)
{
if(randomNumber >= 10.00)
{
System.out.println(randomNumber + randomDecimals);
}
}
}
}
I am having a problem with the setup of my for loop and cannot figure it out... It runs perfectly fine when I remove the for loop.
As you can see I tried declaring the i previously but it made no difference.