RandomXS128
Constructors
Creates a new random number generator. This constructor sets the seed of the random number generator to a value very likely to be distinct from any other invocation of this constructor.
Creates a new random number generator using a single long
seed.
Creates a new random number generator using two long
seeds.
Functions
Returns a pseudo-random, uniformly distributed boolean
value from this random number generator's sequence.
Returns a pseudo-random, uniformly distributed double
value between 0.0 and 1.0 from this random number generator's sequence.
Returns the next pseudo-random, uniformly distributed int
value from this random number generator's sequence.
Returns a pseudo-random, uniformly distributed int
value between 0 (inclusive) and the specified value (exclusive), drawn from this random number generator's sequence.
Returns the next pseudo-random, uniformly distributed long
value from this random number generator's sequence.
Returns a pseudo-random, uniformly distributed long
value between 0 (inclusive) and the specified value (exclusive), drawn from this random number generator's sequence. The algorithm used to generate the value guarantees that the result is uniform, provided that the sequence of 64-bit values produced by this generator is.