how do i get random number for 10 to 99
is this right
Random generator = new Random();
int num1;
num1 = generator.nextInt(99)+ 10;
System.out.println(+num1); or
or this is right does it go from 0 to 99???
num1 = generator.nextInt(99);
System.out.println(+num1);
which is the code for 10 to 99