OFFSET
1,2
COMMENTS
Periodic with period 2^24.
Also the random number generator used by Commodore AmigaBASIC.
Possibly also used by other versions of GWBASIC.
REFERENCES
David I. Schneider, Handbook of BASIC (3rd ed.), Simon & Schuster, 1988 (see p. 497).
LINKS
Sean A. Irvine, Table of n, a(n) for n = 1..10000
W. E. Sharp and Carter Bays, A review of portable random number generators, Computers and Geosciences, 18, 1 (1982), 79-87.
FORMULA
a(n) = (214013 * a(n-1) + 2531011) mod 2^24.
MATHEMATICA
NestList[Mod[214013*#+2531011, 2^24] &, 1, 27] (* Stefano Spezia, May 24 2025 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Sean A. Irvine, May 24 2025
STATUS
approved
