nextInt
Returns the next pseudo-random, uniformly distributed int
value from this random number generator's sequence.
This implementation uses .nextLong internally.
Returns a pseudo-random, uniformly distributed int
value between 0 (inclusive) and the specified value (exclusive), drawn from this random number generator's sequence.
This implementation uses .nextLong internally.
Return
the next pseudo-random int
value between 0
(inclusive) and n
(exclusive).
Parameters
n
the positive bound on the random number to be returned.