Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A096558
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A096558 Output of the linear congruential pseudo-random number generator rand() used in Microsoft's Visual C++. +0
2
0, 38, 7719, 21238, 2437, 8855, 11797, 8365, 32285, 10450, 30612, 5853, 28100, 1142, 281, 20537, 15921, 8945, 26285, 2997, 14680, 20976, 31891, 21655, 25906, 18457, 1323, 28881, 2240, 9725, 32278, 2446, 590, 840, 18587, 16907, 21237, 23611, 12617 (list; graph; listen)
OFFSET

1,2

FORMULA

b(1)=0, b(n)=(b(n-1) * 214013 + 2531011) mod 2^32. a(n)= (floor(b(n)/65536)) mod 32768). The sequence is periodic with period length 2^32.

CROSSREFS

Cf. A096557 corresponding internal states. A096550 - A096561 other pseudo-random number generators.

Sequence in context: A041685 A093648 A055605 this_sequence A030260 A134182 A110017

Adjacent sequences: A096555 A096556 A096557 this_sequence A096559 A096560 A096561

KEYWORD

nonn

AUTHOR

Hugo Pfoertner (hugo(AT)pfoertner.org), Jul 21 2004

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified August 19 23:53 EDT 2008. Contains 142930 sequences.


AT&T Labs Research