RANDBETWEEN

Returns a uniformly random integer between two values, inclusive.

Sample Usage

RANDBETWEEN(1,10)

RANDBETWEEN(A2,A3)

Syntax

RANDBETWEEN(low, high)

  • low - The low end of the random range.

  • high - The high end of the random range.

Notes

  • Values with decimal parts may be used for low and/or high; this will cause the least and greatest possible values to be the next integer greater than low and/or the next integer less than high, respectively.

See Also

RAND: Returns a random number between 0 inclusive and 1 exclusive.

Examples

true
Visit the Learning Center

Using Google products, like Google Docs, at work or school? Try powerful tips, tutorials, and templates. Learn to work on Office files without installing Office, create dynamic project plans and team calendars, auto-organize your inbox, and more.

Search
Clear search
Close search
Google apps
Main menu
10342667878989878253
true
Search Help Center
true
true
true
true
true
35
false
false