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 (497406/5 B.C.)
“Only in a house where one has learnt to be lonely does one have this solicitude for things. Ones relation to them, the daily seeing or touching, begins to become love, and to lay one open to pain.”
—Elizabeth Bowen (18991973)