TX Sheet Control

RANDARRAY Function

Function

Return an array of random numbers that spills into the cells next to the formula. rows and columns set the size of the array (1 when omitted), start_or_min and step_or_max the smallest and the largest number (0 and 1 when omitted), and whole_number TRUE returns integers and FALSE or omitted decimal numbers. A rows or columns value less than 1 returns #NUM!, and a smallest number greater than the largest returns #VALUE!.

Syntax

RANDARRAY(rows, columns, start_or_min, step_or_max, whole_number)

Category: Lookup. Minimum arguments: 0. Maximum arguments: 5.

Available for supported offline calculation.

Examples

=RANDARRAY(2,3,1,1)

The formula returns an array of 2 rows and 3 columns with 1 in every cell, because the smallest and the largest number are both 1.

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

See Also