This is documentation for Mathematica 6, which was
based on an earlier version of the Wolfram Language.

# 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 array of pseudorandom reals. RandomReal[dist, ...]samples from the symbolic continuous distribution dist.
• RandomReal[spec, WorkingPrecision->n] yields reals with -digit precision. Leading or trailing digits in the generated number can turn out to be 0.
• RandomReal gives a different sequence of pseudorandom reals whenever you run Mathematica. You can start with a particular seed using SeedRandom.
• A Method option to SeedRandom can be given to specify the pseudorandom generator used.
A random real number in the range 0 to 1:
 Out[1]=

A random real number in the range -10 to 10:
 Out[1]=

A random real number in the range 0 to 10:
 Out[1]=

A random real from a normal distribution with mean 0 and standard deviation 1:
 Out[1]=

5 random reals in the range 0 to 1:
 Out[1]=

A array of random reals in the range -1 to 1:
 Out[1]=

Random coordinates for 4 points in 3 dimensions:
 Out[1]=
 Scope   (3)
 Options   (1)
 Applications   (7)
New in 6