Return the next Long from this random number stream.
Return the next Long from this random number stream.
Sets this random number generator to its default initial state.
Sets this random number generator to its default initial state.
Set the current state to l
The current state packed in a Long
Produce an endless stream of Doubles via an iterator
Produce an endless stream of Doubles via an iterator
Produce an endless stream of Floats 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 Ints via an iterator
Produce an endless stream of Longs 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.
Return the next Int from this random number stream by producing a Long and discarding the lower 32 bits.
Return the next Int from this random number stream by producing a Long and discarding the lower 32 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
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.
Seed the generator with the current time.
Seed the generator with the current time. Sequential calls from the same thread produce different seeds.
Store the current state of the generator in an array of bytes.
Store the current state of the generator in an array of bytes.
A trait for random number generators storing a Long's worth of state. Assume that the generator produces 64 bits per cycle.