Return the next Int from this random number stream.
Return the next Long from this random number stream.
Sets this random number generator to its default initial state.
Load stored state into the generator.
Load stored state into the generator. The convention is that extra bytes are ignored, and a best-effort attempt is made to use overly short arrays to perform partial initialization.
Store the current state of the generator in an array of bytes.
Produce an endless stream of Doubles via an iterator
Produce an endless stream of Floats via an iterator
Produce an endless stream of Ints via an iterator
Produce an endless stream of Longs via an iterator
Return the next Double in the range [0,1) from this random number stream.
Return the next Double in the range [0,1) from this random number stream. Values are equally spaced. Based on nextLong shifted down to 53 bits.
Return the next Float in the range [0,1) from this random number stream.
Return the next Float in the range [0,1) from this random number stream. Values are equally spaced. Based on nextInt shifted down to 24 bits.
Produce a number in {0, 1, .
Produce a number in {0, 1, ..., n-1}
Produce an endless stream of numbers each drawn from {0, 1, .
Produce an endless stream of numbers each drawn from {0, 1, ..., n-1} via an iterator
Seed the generator with the current time.
Seed the generator with the current time. Sequential calls from the same thread produce different seeds.
Rng is the common supertrait of pseudorandom number generators. These are all inherently mutable and not thread-safe.