Excel
RAND function in Excel
Returns a random number between 0 and 1
=RAND()RAND examples
Formulas you'll actually reuse.
A random decimal from 0 up to 1 — recalculates on every edit:
=RAND()Pick roughly 10% of rows for a spot check (paste as values to freeze them):
=IF(RAND() < 0.1, "Audit", "")
RAND in Google Sheets
Same name — your formula ports as-is.
Try RAND in the playground
Edit the example — nothing to install.
Preloaded with the RAND formula from Example 1 — change anything and watch it respond.
Loading the editor…
Related functions
More ways Excel gets this done.
- ABSReturns the absolute value of a numberMathGoogle Sheets
- ACOSReturns the arccosine of a numberMathGoogle Sheets
- ACOSHReturns the inverse hyperbolic cosine of a numberMathGoogle Sheets
- ACOTReturns the arccotangent of a numberMathGoogle Sheets
- ACOTHReturns the hyperbolic arccotangent of a numberMathGoogle Sheets
- AGGREGATEReturns an aggregate in a list or databaseMathNo Google Sheets equivalent