OFFSET
1,2
COMMENTS
Periodic with period 2^16.
This was a popular generator in the 1980's due to Grogono's book, but the period was too short for serious scientific use.
REFERENCES
Peter Grogono, Programming in Pascal (2nd ed.), Addison-Wesley, 1984 (see pp. 136-137).
LINKS
Sean A. Irvine, Table of n, a(n) for n = 1..10000
Stephen K. Park and Keith W. Miller, Random number generators: good ones are hard to find, Communications of the ACM, Vol 31, 10 (1988), 192-201.
W. E. Sharp and Carter Bays, A review of portable random number generators, Computers and Geosciences, 18, 1 (1982), 79-87.
FORMULA
a(n) = (25173 * a(n-1) + 13849) mod 2^16.
MATHEMATICA
NestList[Mod[25173*# + 13849, 2^16] &, 1, 100] (* Paolo Xausa, May 22 2025 *)
CROSSREFS
Cf. A384220 (similar generator for Smalltalk-80).
KEYWORD
nonn,easy
AUTHOR
Sean A. Irvine, May 21 2025
STATUS
approved
