TX Sheet Control

RANDBETWEEN Function

Function

Return a random integer between two numbers, both included. bottom is the smallest and top the largest integer that can be returned; bottom is rounded up and top down to an integer. A bottom greater than top after rounding returns #NUM!. Every call returns a new number.

Syntax

RANDBETWEEN(bottom, top)

Category: Math. Minimum arguments: 2. Maximum arguments: 2.

Available for supported offline calculation.

Examples

=RANDBETWEEN(1,10)

The formula returns an integer from 1 to 10.

Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.

See Also