Class SplitMix64

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.

  • seed: the seed to use

uint64_t next()

Generates the next random integer.

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)

a random double