RANDARRAY function
Returns an array of random numbers between 0 and 1.
Returns an array of random numbers between 0 and 1. However, you can specify the number of rows and columns to fill, minimum and maximum values, and whether to return whole numbers or decimal values.
Syntax
RANDARRAY([rows], [columns], [min], [max], [whole_number])Square brackets indicate optional arguments.
Arguments
| Argument | Required | Meaning |
|---|---|---|
| rows | No | The number of rows to be returned5 |
| columns | No | The number of columns to be returned3 |
| min | No | The minimum number you would like returned1 |
| max | No | The maximum number you would like returned100 |
| whole_number | No | Return a whole number or a decimal valueTRUE |
Try RANDARRAY
Fill three rows and two columns with random integers
=RANDARRAY(A2,B2,C2,D2,TRUE)RANDARRAY spills six integers into G2:H4. TRUE requests whole numbers, and both limits 10 and 20 are included. Recalculate to draw a new matrix; keep the spill area clear. The check covers all six values and the complete three-by-two shape. It does not test the statistical distribution. Native Excel needs a version supporting RANDARRAY.
Checks for this calculation:
- G2:H4: Integer from 10 through 20.
Output: 3 rows × 2 columns. Keep RANDARRAY in the formula for this exercise. The check applies to this calculation's output.
Reference workbook results appear after recalculation in a compatible spreadsheet app. Current-data downloads refresh the results shown here. Keep formulas to recalculate later, or select Freeze results to save fixed values.
Inspect the current formula
Read its written arguments or observe actual operation values in a separate local calculation. This action neither applies a draft nor grades an answer.
Read the formula, one argument at a time
Explore the written function calls and their inputs. The calculation result belongs to the complete formula.
RANDARRAY · top-level call
=RANDARRAY(A2,B2,C2,D2,TRUE)Follow the cells behind a result
Read explicit local references and helper formulas using a separate calculation. Your draft stays in this field; the worksheet and practice checks do not change.
The worksheet runs locally. Published checks apply to the supplied example only. Native Excel and Google Sheets compatibility remain unverified.
Reference and compatibility
Univer 1.0.4 / Apache-2.0. Calculation checks cover the supplied examples only. The browser worksheet does not implement every Excel feature, external service or connected data type.