Random

Randomness (WMA link)


Random[]

gives a pseudorandom real number in the range 0 to 1.

Random[type, range]

gives a pseudorandom number of the type type, in the specified interval range.
Possible types are Integer, Real or Complex.

Legacy function. Superseded by RandomReal, RandomInteger, and RandomComplex.

Four random numbers in the range 0..1:

Eight random integers in the range 1..100:

RandomChoice