This generator is the same as the default one-stream SPRNG 48-bit lcg. This generator suffers from the same patterns in the low order bits as the 64-bit generator, but these patterns become more significant because of the smaller width of the random number state. Like the 64-bit generator, this generator is fast. The next value for the random number state, x[n], is determined from the current value, x[n - 1], by
x[n] = a x[n - 1] + b (mod2^{48}) . | (4) |
Rng_Type Rng48Spawn( Rng_Type *x );
int iRng48( Rng_Type *x );
double dRng48( Rng_Type *x );
float fRng48( Rng_Type *x );
Our advice is to only use this generator to check application sensitivity to the quality of the random number stream.