|
|
||
|
|
| Built-in Mathematica Symbol | Tutorials »|See Also »|More About » |
RandomReal |
| RandomReal[] gives a pseudorandom real number in the range 0 to 1. |
| RandomReal[{xmin, xmax}] gives a pseudorandom real number in the range xmin to xmax. |
| RandomReal[xmax] gives a pseudorandom real number in the range 0 to xmax. |
| RandomReal[range, n] gives a list of n pseudorandom reals. |
| RandomReal[range, {n1, n2, ...}] gives an |
| RandomReal[dist, ...] samples from the symbolic continuous distribution dist. |
A random real number in the range 0 to 1:
A random real number in the range -10 to 10:
A random real number in the range 0 to 10:
A random real from a normal distribution with mean 0 and standard deviation 1:
5 random reals in the range 0 to 1:
A
Random coordinates for 4 points in 3 dimensions:
|
| © 2008 Wolfram Research, Inc. |