A152960
Output of linear congruential pseudo-random generator 134775813 for signed 32-bit values.
Original entry on oeis.org
0, 1, 134775814, -596792289, 870078620, 1172187917, -1410233534, 1368768587, 694906232, 1598751577, 1828254910, 352239543, 2039224980, 303092965, -683524998, 256513635, 1259699184, -355259471, 1580146294, -967806897, 1408429452, -1298476099, -669280590
Offset: 0
-
// implementation using Delphi's built-in random() function
var
I: Integer;
begin
Randseed:= 0;
for I:= 1 to 100 do begin
Write(Randseed, ',');
Random;
end;
end.
-
nn=30; t = {x = 0}; Do[x = Mod[134775813 x + 1, 2^32]; If[x > 2^31, x = x - 2^32]; AppendTo[t, x], {nn}]; t (* T. D. Noe, Dec 18 2012 *)
-
step(n)=(134775813*n+1)%2^32 \\ Charles R Greathouse IV, Sep 10 2015
-
a(n)=lift((Mod(134775813,2^34)^n-1)/33693953)/4 \\ Charles R Greathouse IV, Sep 10 2015
A384405
Consecutive internal states of the linear congruential pseudo-random number generator 69621 * s mod (2^31-1) when started at s=1.
Original entry on oeis.org
1, 69621, 552116347, 1082396834, 201323037, 1832878655, 1219051368, 874078441, 971035822, 1699755902, 1619285207, 1953863635, 1883480414, 143449980, 1332099030, 837788288, 2002546328, 344571154, 1995975644, 300997201, 580703395, 623924873, 1121855264
Offset: 1
-
NestList[Mod[69621*#, 2^31 - 1] &, 1, 50] (* Paolo Xausa, Jun 04 2025 *)
A385102
Consecutive internal states of the linear congruential pseudo-random number generator for Turbo Pascal 3.0 when started at 1.
Original entry on oeis.org
1, 907633514, 2028239699, 557549500, 4112042149, 3080093198, 3102664695, 1719420512, 3669547337, 1832837298, 1120443547, 3710930180, 2876256749, 2577566550, 2701236543, 1474796456, 2177815185, 2672918010, 2116672995, 3375510092, 2556738357, 14399646
Offset: 1
- Sean A. Irvine, Table of n, a(n) for n = 1..10000
- J. Eichenauer-Herrmann and H. Grothe, Upper bounds for the Beyer ratios of linear congruential generators, J Comp. Appl. Math., 31 1 (1990), 73-80.
- 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.
- Index entries for sequences related to pseudo-random numbers.
-
NestList[Mod[129# + 907633385, 2^32] &,1,21] (* Stefano Spezia, Jun 18 2025 *)
Showing 1-3 of 3 results.
Comments