We deliver solutions for the AI eraâcombining symbolic computation, data-driven insights and deep technology expertise.
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 n1×n2×… array of pseudorandom reals.
Details and OptionsA random real number in the range 0 to 1:
A random real number in the range to :
A random real number in the range 0 to 10:
Five random reals in the range 0 to 1:
A 3×2 array of random reals in the range to :
Random coordinates for 4 points in 3 dimensions:
Scope (3)Generate random reals of any magnitude:
Generate random reals of any precision:
Options (1) WorkingPrecision (1)Generate a random real with 50-digit precision:
Applications (8)Three-dimensional random walk:
Determinants of random 100×100 matrices:
Generate a complex number in the unit square:
Use RandomComplex instead:
Generate exponential random variables using inversion method:
Compare sample histogram with the PDF of ExponentialDistribution:
Alternatively, use RandomVariate to sample from nonuniform distributions directly:
Test whether both datasets could be samples from the same distribution:
Properties & Relations (5) Neat Examples (1)Construct a surface from random heights:
Wolfram Research (2007), RandomReal, Wolfram Language function, https://reference.wolfram.com/language/ref/RandomReal.html. TextWolfram Research (2007), RandomReal, Wolfram Language function, https://reference.wolfram.com/language/ref/RandomReal.html.
CMSWolfram Language. 2007. "RandomReal." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/RandomReal.html.
APAWolfram Language. (2007). RandomReal. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/RandomReal.html
BibTeX@misc{reference.wolfram_2025_randomreal, author="Wolfram Research", title="{RandomReal}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/RandomReal.html}", note=[Accessed: 12-July-2025 ]}
BibLaTeX@online{reference.wolfram_2025_randomreal, organization={Wolfram Research}, title={RandomReal}, year={2007}, url={https://reference.wolfram.com/language/ref/RandomReal.html}, note=[Accessed: 12-July-2025 ]}
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4