Bit-mixing random number generator based on rotations from Bob Burtle.
Bit-mixing random number generator based on rotations from Bob Burtle.
Bit-mixing random number generator based on rotations from Bob Burtle.
Hybrid (combined) RNG suggested by Numerical Recipes in C, 3rd.
High-quality hybrid (combined) RNG suggested by Numerical Recipes in C, 3rd.
Linear congruential generator with 2^32 modulus. Extremely fast but poor quality of randomness.
Linear congruential generator with period 262 - 216.
Linear congruential generator with 2^32 modulus. Extremely fast, moderately random. Based on Mascagni SPRNG lcg64 values.
Marsaglia "Weyl sequence" RNG with cycle length of 2192 - 232 from http://www.jstatsoft.org/v08/i14/paper.
George Marsaglia XorShift RNG with 32 bits of state and 3 shifts.
George Marsaglia XorShift RNG with 64 bits of state and 3 shifts.
Given an array of bytes, produce an IntBuffer that delivers it as Ints (any remainder is lost).
Given an array of bytes, produce a LongBuffer that delivers it as Longs (any remainder is lost).
The byte order used to pack internal state into byte arrays.
The byte order used to pack internal state into byte arrays. (Set to java.nio.ByteOrder.LITTLE_ENDIAN.)
Pack some number of Ints into a byte array.
Pack some number of Longs into a byte array.
Utility methods and random number implementations.