![Quote](https://www.javaprogrammingforums.com/images/misc/quote_icon.png)
Originally Posted by
jean28
...I am trying to generate 100 random numbers...I get a wrong output....
What method is responsible for generating the numbers?
Try putting some print statements in that function that go something like:
.
.
.
System.out.println("Generating 100 random numbers");
for (int i = 1; i <= 100; i++)
{
randomInt = randomGenerator.nextInt(1000);
System.out.println("randomInt = " + randomInt);
.
.
.
If you don't understand the output from these statements (or lack thereof), put a print statement in your main() method where you are calling that function.
Cheers!
Z