This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)
Random Number Generation
Based on original algorithms developed at Wolfram Research, Mathematica's core randomness generation is both highly efficient and of exceptional quality. Mathematica can produce both discrete and continuous randomness, with a wide range of distributions conveniently specified in symbolic form.
RandomInteger random integer or array of integers
RandomReal random real or array of reals
RandomComplex random complex numbers
RandomVariate nonuniform random variate or array of variates
RandomChoice random choices from a list
RandomSample random samples or permutation of a list
RandomPrime random prime number
SeedRandom seed and pick method
BlockRandom make random number generation localized