Random number generator (included): Difference between revisions
Content added Content deleted
m (alphabetical order) |
|||
Line 85: | Line 85: | ||
=={{header|Lua}}== |
=={{header|Lua}}== |
||
Lua's <code>math.random()</code> is an interface to the C <code>rand()</code> function provided by the OS libc; its implementation varies by platform. |
Lua's <code>math.random()</code> is an interface to the C <code>rand()</code> function provided by the OS libc; its implementation varies by platform. |
||
=={{header|Mathematica}}== |
|||
Mathematica 7, by default, uses an Extended Cellular Automaton method ("ExtendedCA") to generate random numbers. You can specify alternative generation methods including the Mersenne Twister and a Linear Congruential Generator (the default earlier versions). Information about random number generation is provided at [http://reference.wolfram.com/mathematica/tutorial/RandomNumberGeneration.html#185956823 Mathematica]. |
|||
=={{header|MATLAB}}== |
=={{header|MATLAB}}== |