I'm having trouble using the random number generator, or having trouble understanding the concept entirely. I want to generate 20 random numbers from 0 to x.
Random ranNum= new Random();
int n = ranNum.nextInt(x) + 0;
Is this how I would go about it?
x? 3) What do you think is accomplished by adding zero? 4) Have you tried what you proposed? If not, why not, and if so, what did it not do that you were hoping to see?