Generate a random Double between 0.0 and 1.0, inclusive.
Generate a random Int across the entire allowed integer values
from Int.MinValue
to Int.MaxValue
, inclusive.
Generate a random Int between 0 (inclusive) and n
(exclusive).
Generate a random Int between 0 (inclusive) and n
(exclusive).
the upper bound (exclusive). Must be a positive value.
Generate a random Long between 0 (inclusive) and n
(exclusive).
Generate a random Long between 0 (inclusive) and n
(exclusive).
the upper bound (exclusive). Must be a positive value.
A random number generator. Java's divergent interfaces forces our hand here: ThreadLocalRandom does not conform to java.util.Random. We bridge this gap.