Linear congruential generator
The Lehmer algorithm can be written as
where the user chooses , , , and a seed value to initiate the algorithm, .
See the prime modulus multiplicative linear congruential generator page.
References
- [ranLehmer51_photocopy]