Skip to main content

RANDARRAY function

The RANDARRAY function generates an array of random numbers between 0 and 1. The size of the array is determined by the provided rows and columns arguments.

Parts of a RANDARRAY function​

RANDARRAY(rows, columns)

PartDescription
rowsThe number of rows to return [optional]. Must be specified if columns is specified.
columnsThe number of columns to return [optional].


## Sample formulas

Example 1 RANDARRAY()

Example 2 RANDARRAY(4, 2)

Notes​

  • If rows and columns are omitted, RANDARRAY returns a 1 x 1 sized grid.
  • Like the RAND function, hitting enter will cause RANDARRAY’s results to update.

Examples​

AB
1FormulaResult
2=RANDARRAY()0.292929292
3
4
ABC
1FormulaResult
2=RANDARRAY(4,2)0.354645660.124214214
30.456748634120.4561312
40.45651460.12645601
50.78789450.13459698
  • RAND Returns a random number between 0 inclusive and 1 exclusive.