Anonymous user
Random number generator (included): Difference between revisions
added D
m (→{{header|Delphi}}: Use interwiki link style) |
(added D) |
||
Line 1:
=={{header|Clojure}}==
See Java.
=={{header|
From std.random:
The generators feature a number of well-known and well-documented methods of generating random numbers. An overall fast and reliable means to generate random numbers is the Mt19937 generator, which derives its name from "[http://en.wikipedia.org/wiki/Mersenne_twister|Mersenne Twister] with a period of 2 to the power of 19937". In memory-constrained situations, [http://en.wikipedia.org/wiki/Linear_congruential_generator|linear congruential] generators such as MinstdRand0 and MinstdRand might be useful. The standard library provides an alias Random for whichever generator it considers the most fit for the target environment.
|