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.

ReferenceReference

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

Statistical Distributions »

NormalDistribution ▪ StudentTDistribution ▪ PoissonDistribution ▪ ...

SeedRandom seed and pick method

BlockRandom make random number generation localized

New to Mathematica? Find your learning path »
Have a question? Ask support »