A384289 Consecutive internal states of the linear congruential pseudo-random number generator for GWBASIC 3.23 when started at 1.
1, 2745024, 2356867, 12486458, 8679701, 14802820, 7082039, 14027294, 11434089, 5380488, 9466411, 4830274, 15796733, 15840460, 12300383, 15321510, 15423953, 11736400, 10919635, 14405194, 3988453, 8904468, 807303, 4097582, 10044473, 2422296, 6167675, 914770
Offset: 1
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.
- Index entries for sequences related to pseudo-random numbers.
Crossrefs
Programs
-
Mathematica
NestList[Mod[214013*#+2531011, 2^24] &, 1, 27] (* Stefano Spezia, May 24 2025 *)
Formula
a(n) = (214013 * a(n-1) + 2531011) mod 2^24.
Comments