Crate lcg69069

Source
Expand description

LCG69096 / MCG69069 (VAX MTH$RANDOM) pseudo random Linear congruential generators.

Generators are named after multiplier coeficient A = 69069. 69069 parameter got proposed by George Marsaglia as a “candidate for the best of all multipliers”.

Generators can achieve the full period which is 2^32 for LCG and 2^30 for MCG variant.

Structs§

LCG69069
LCG69069 / VAX MTH$RANDOM number generator.
MCG69069
Multiplicative congruential pseudo-random number generator MCG69069.

Constants§

A
multiplier A coeficient 69069 = 3 * 7 * 11 * 13 * 23
M
modulo M coeficient 2^32

Type Aliases§

MTHRANDOM
VAX MTH$RANDOM number generator.