1. Home
  2. Functions
  3. Math
  4. RAND
MathVolatile

RAND function

Returns a random number from 0 up to (not including) 1, new on every recalculation.

Syntax

=RAND()

Arguments

RAND takes no arguments. Type =RAND() with empty parentheses.

How to use RAND

RAND is volatile: it recalculates every time the workbook changes, so its result can differ each time.

RAND takes no required arguments. Type =RAND( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.

Examples

Each result below was calculated by the SheetsBat formula engine.

=AND(RAND()>=0, RAND()<1)Result TRUE

Every formula, right in your browser

SheetsBat calculates 536 functions, with charts, pivot tables and live collaboration. Free to start.