Syntax
| Parameter | Description |
|---|---|
| [rows] | (Optional.) Parameter of the RANDARRAY function. |
| [columns] | (Optional.) Parameter of the RANDARRAY function. |
| [min] | (Optional.) Parameter of the RANDARRAY function. |
| [max] | (Optional.) Parameter of the RANDARRAY function. |
| [whole_number] | (Optional.) Parameter of the RANDARRAY function. |
Examples
5x3 grid of random integers 1-100
=RANDARRAY(5, 3, 1, 100, TRUE)
Random decimal percentages
=RANDARRAY(10, 1, 0, 1, FALSE)
Random test scores
=RANDARRAY(30, 1, 60, 100, TRUE)
Common Errors
Rows or columns is zero or negative, or min is greater than max.
The resulting array is too large for the available worksheet space.
Tips
RANDARRAY recalculates every time the sheet recalculates. To freeze values, copy the range and Paste Values (Ctrl+Shift+V) over the formula.
Use RANDARRAY to populate test data: random sales amounts, random ages, random scores. Combine with CHOOSE or INDEX to pick random names from a list.
Set the last argument to TRUE for integers (e.g., quantities, headcounts) or FALSE/omit for decimals (e.g., rates, percentages, measurements).
Try RANDARRAY in Viztab
Import your data and use RANDARRAY with 370+ other formulas. No signup required.
Open Viztab