Class SplitMix64¶
- Defined in File Xoroshiro256plus.h
Class Documentation¶
-
class
SplitMix64¶ A random number generator using the splitmix64 algorithm - this is provided for generating the shuffle table within the main Xoroshiro256+ algorithm.
Public Functions
-
SplitMix64(uint64_t seed)¶ Default constructor, taking the RNG seed.
- Parameters
seed: the seed to use
-
uint64_t
next()¶ Generates the next random integer.
- Return
- a random integer in the range of 0 to 2^64
-
void
shuffle()¶ Shuffle the random number 8 times.
-
double
d01()¶ Gets a random double in the range [0, 1)
- Return
- a random double
-