Random number generator (included): Difference between revisions
Content added Content deleted
(Added Oz.) |
|||
Line 24: | Line 24: | ||
OCaml provides a module called [http://caml.inria.fr/pub/docs/manual-ocaml/libref/Random.html Random] in its standard library which is a "Linear feedback shift register" pseudo-random number generator (References: Robert Sedgewick, "Algorithms", Addison-Wesley). It is seeded by a MD5-based PRNG. |
OCaml provides a module called [http://caml.inria.fr/pub/docs/manual-ocaml/libref/Random.html Random] in its standard library which is a "Linear feedback shift register" pseudo-random number generator (References: Robert Sedgewick, "Algorithms", Addison-Wesley). It is seeded by a MD5-based PRNG. |
||
=={{header|Oz}}== |
|||
Oz provides a binding to the C <code>[http://www.opengroup.org/onlinepubs/000095399/functions/rand.html rand]</code> function as <code>[http://www.mozart-oz.org/home/doc/system/node56.html#label719 OS.rand]</code>. |
|||
=={{header|Perl}}== |
=={{header|Perl}}== |