Skip to content
Google Sheets

RAND function in Google Sheets

Returns a random number between 0 inclusive and 1 exclusive.

=RAND()

RAND examples

Formulas you'll actually reuse.

  1. A random decimal from 0 up to 1 — recalculates on every edit:

    =RAND()
  2. Pick roughly 10% of rows for a spot check (paste as values to freeze them):

    =IF(RAND() < 0.1, "Audit", "")

RAND in Excel

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…