RANDARRAY Function
The RANDARRAY function is one of the math and trigonometry functions. It is used to return an array of random numbers and can be configured to fill a certain number of rows and columns, set a range for values, or return whole/decimal numbers.
The RANDARRAY function syntax is:
RANDARRAY([rows],[columns],[min],[max],[whole_number])
where
rows is an optional argument indicating the number of rows to be returned. If the argument is not given, the function will return a value between 0 and 1.
columns is an optional argument indicating the number of columns to be returned. If the argument is not given, the function will return a value between 0 and 1.
min is an optional argument indicating the minimum number to be returned. If the argument is not given, the function will default to 0 and 1.
max is an optional argument indicating the maximum number to be returned. If the argument is not given, the function will default to 0 and 1.
whole_number is an optional TRUE or FALSE argument. If TRUE, the function will return a whole number; FALSE will return a decimal one.
To apply the RANDARRAY function,
- select the cell where you wish to display the result,
-
click the Insert function icon situated at the top toolbar,
or right-click within a selected cell and select the Insert Function option from the menu,
or click the icon situated at the formula bar, - select the Math and trigonometry function group from the list,
- click the RANDARRAY function,
- enter the arguments separating them by commas,
- press the Enter button.
The result will be displayed in the selected cell.