Generate random numbers in Google Sheets with RAND

Quickly create random numbers between 0 and 1 using the RAND() function, then lock results when you need stable values for tests, sampling, or simulations.

What the video covers

Show how to insert RAND() in a cell to produce random numbers between 0 and 1, how recalculation affects results, and how to convert random results to fixed values.

Watch the video on YouTube

Step-by-step instructions

  1. Choose a cell
    Click the cell where you want the random number to appear.
  2. Enter the formula
    Type =RAND() and press Enter. Google Sheets returns a decimal number between 0 and 1.
  3. Fill multiple cells (optional)
    To generate many random numbers, drag the cell’s fill handle (corner) down or across, or copy and paste the cell into a range.
  4. Understand recalculation
    Random values update automatically when the sheet recalculates (for example, after edits or refresh). Expect numbers to change whenever the sheet recalculates unless locked.
  5. Lock a value (make it permanent)
    Select the cell(s) with RAND results, copy them, then use paste values-only to replace the formulas with their current numbers. Those values will no longer change.

Watch the video

Video thumbnail for Generate random numbers in Google Sheets with RAND Play tutorial

Watch on YouTube

Why it matters

RAND() is useful for testing formulas, creating random samples, running simple simulations, and making quick random decisions without complex setup.

Check your result

A cell with =RAND() shows a decimal between 0 and 1. After forcing recalculation (e.g., edit or refresh) it changes unless you pasted values-only to lock it.

Troubleshooting

If the value doesn't change, ensure the cell contains =RAND() (not a pasted value). If values are changing but you want them fixed, use copy → paste values-only. If random numbers appear outside 0–1, confirm you're not applying a different formula or formatting.