Template:PRNG
Revision as of 20:56, 14 December 2025 by Kevin Wang (talk | contribs) (Created page with "<includeonly>{{#vardefine:m|65537}}{{#expr:75*{{{1|1}}} mod {{#var:m}}}}</includeonly><noinclude>{{Template doc| A simple [https://en.wikipedia.org/wiki/Linear_congruential_ge...")
Template documentation
A simple linear congruential generator for generating bad random numbers using the parameters "X_{n+1}=75 X_n mod 65537" (which is the same values as the ZX Spectrum apparently).
{{PRNG|1}}, {{PRNG|2}}, {{PRNG|3}}, {{PRNG|4}}, {{PRNG|5}}
75, 150, 225, 300, 375