Linear congruential generator
The Lehmer algorithm can be written as
Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle y_{n+1}\equiv ay_{n}+b~~~(\mod ~m),}
where the user chooses , , , and a seed value to initiate the algorithm, Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle y_0} .
See the prime modulus multiplicative linear congruential generator page.
References
- [ranLehmer51_photocopy]