Lehmer Random Number Generator - Relation To LCG

Relation To LCG

While the Lehmer RNG can be viewed as a particular case of the linear congruential generator with c=0, it is a special case that implies certain restrictions and properties. In particular, for the Lehmer RNG, the initial seed X0 must be coprime to the modulus n that is not required for LCGs in general. The choice of the modulus n and the multiplier g is also more restrictive for the Lehmer RNG. In contrast to LCG, the maximum period of the Lehmer RNG equals n−1 and it is such when n is prime and g is a primitive root modulo n.

On the other hand, the discrete logarithms (to base g or any primitive root modulo n) of Xk in represent linear congruential sequence modulo Euler totient .

Read more about this topic:  Lehmer Random Number Generator

Famous quotes containing the words relation to and/or relation:

    “Whoever has a keen eye for profits, is blind in relation to his craft.”
    —Sophocles (497–406/5 B.C.)

    “You know there are no secrets in America. It’s quite different in England, where people think of a secret as a shared relation between two people.”
    —W.H. (Wystan Hugh)