Random number generation helper class.
u32 ranqdStep()
Implementation of the ranqd1 algorithm.
u32 mSeed
The current seed.
cM_rand_c(u32 seed)
Initializes the class with the given seed.
float ranqd3()
Generates a floating point number between -0.5 and 0.5.
u32 ranqd1(u32 max)
Generates an integer between 0 and the given max.
static u32 mConst1
Constant a from the ranqd1 algorithm.
static u32 mConst2
Constant c from the ranqd1 algorithm.
float ranqd2()
Generates a floating point number between 0 and 1.