Random number generator (included)

From Rosetta Code
Revision as of 10:55, 5 June 2011 by rosettacode>Fwend (added D)

Clojure

See Java.

D

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 "Twister with a period of 2 to the power of 19937". In memory-constrained situations, 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.