login
Pseudo-random numbers: MS C 6.0 version.
2

%I #17 Jun 26 2019 17:16:49

%S 41,18467,6334,26500,19169,15724,11478,29358,26962,24464,5705,28145,

%T 23281,16827,9961,491,2995,11942,4827,5436,32391,14604,3902,153,292,

%U 12382,17421,18716,19718,19895,5447,21726,14771

%N Pseudo-random numbers: MS C 6.0 version.

%H Alan Klette, <a href="/A084275/b084275.txt">Table of n, a(n) for n = 0..98</a>

%H Sean A. Irvine, <a href="https://github.com/archmageirvine/joeis/blob/master/src/irvine/oeis/a084/A084275.java">Java program</a> (github)

%H <a href="/index/Ps#PRN">Index entries for sequences related to pseudo-random numbers.</a>

%o (C)

%o #include <stdio.h>

%o int main()

%o {

%o long next = 1;

%o int i = 0;

%o while ( i++ < 33 )

%o {

%o next = next * 214013L + 2531011L;

%o printf( "%d ", (unsigned)( next >> 16) & 0x7FFF );

%o }

%o printf("\n");

%o return 0;

%o }

%Y See A084276, A084277, A061364 for other versions.

%K nonn,easy

%O 0,1

%A _Frank Ellermann_, May 20 2003

%E Corrected by _Alan Klette_, Jun 09 2019