FREE Subscription to Dr. Dobb’s Digest: Same Great Content, New Digital Edition
Site Archive (Complete)
C++
Email
Print
Reprint

add to:
Del.icio.us
Digg
Google
Furl
Slashdot
Y! MyWeb
Blink
June 01, 1995

Quick and Portable Random Number Generators

(Page 3 of 7)
June 1995/Quick and Portable Random Number Generators/Listing 1

Listing 1 A couple of lines of Mathematica code that execute a Lehmer generator. Print the 10,000th value after initializing at one

Rand[x_]:=Mod[41358*x, 2147483647]
x=1; Do[ x=Rand[x], {i,10000}];Print[x];
Previous Page | 1 | 2 | 3 | 4 | 5 | 6 | 7 Next Page
RELATED ARTICLES
No Related Articles
TOP 5 ARTICLES
No Top Articles.



MICROSITES
FEATURED TOPIC

ADDITIONAL TOPICS

INFO-LINK