nextLong
Gets the next random Long
from the random number generator.
Generates a Long
random value uniformly distributed between Long.MIN_VALUE
and Long.MAX_VALUE
(inclusive).
Gets the next random non-negative Long
from the random number generator less than the specified until bound.
Generates a Long
random value uniformly distributed between 0
(inclusive) and the specified until bound (exclusive).
Parameters
Exceptions
IllegalArgumentException
- if until is negative or zero.