Category: FUNCTION | Updated: 2026-11-22

[RAND Function] How to Generate a Random Decimal Between 0 and 1

Syntax

=RAND()
  • Arguments: None (leave the parentheses empty).

Example Table

Here is an example of using the RAND function to assign random scores (from 0 up to, but not including, 1) for a raffle.

Participant Formula Output (Example) Notes
Sato =RAND() 0.4829104 Decimal >= 0 and < 1
Suzuki =RAND() 0.9103842 Changes on every recalculation
Takahashi =RAND()*10 3.1948271 Decimal >= 0 and < 10

Common Errors and Caveats

  • #ERROR! or #N/A error: Because RAND takes no arguments, entering a number or cell reference inside the parentheses (such as =RAND(10)) will cause an error.
  • Values changing due to recalculation: Editing any cell in the sheet triggers a recalculation of all RAND formulas. To lock in raffle results or other random values, select the cells, copy them with Ctrl + C (Cmd + C on Mac), and paste values only with Ctrl + Shift + V (Cmd + Shift + V on Mac) to replace the formulas with static numbers.

Frequently Asked Questions

Q. Why do numbers generated by the RAND function keep changing on their own?

A. RAND is a volatile function, so it recalculates and produces a new random number every time you edit a cell or reload the sheet. To lock in the values, copy the cells and use Paste values only.

Q. How can I generate a random decimal between 0 and 100?

A. Multiply the result of RAND by your desired upper limit, such as "=RAND()*100", to generate a random decimal greater than or equal to 0 and less than 100.