Description:
nextInt() method:
This method returns the next random, uniformly distributed int value from this random number generator's sequence.
nextInt(int n) method:
This method returns a random, uniformly distributed int value between 1, which is inclusive, and the specified value, which is exclusive.
Example
Random rand = new Random();
Logger.log("random integer: " + rand.nextInt());
The nextInt method returns the next random int value.