Template:PRNG
Revision as of 18:40, 20 December 2025 by Kevin Wang (talk | contribs)
Template documentation
A simple linear congruential generator for generating bad random numbers using the parameters "X_{n+1}=75 X_n mod 65537 + 1" (which is the same values as the ZX Spectrum apparently.
- arg1 - input
- arg2 - mod (optional)
{{PRNG|1}}, {{PRNG|2}}, {{PRNG|3}}, {{PRNG|4}}, {{PRNG|5}}
{{PRNG|1|7}}, {{PRNG|2|7}}, {{PRNG|3|7}}, {{PRNG|4|7}}, {{PRNG|5|7}}
76, 151, 226, 301, 376
6, 4, 2, 7, 5