Math & Trig
Excel 2021
◉ 26 views
Dynamic Array Volatile
=RANDARRAY()
Learn about the RANDARRAY function for creating arrays of random numbers between 0 and 1. RANDARRAY is in a class of functions called dynamic arrays.
Applies To:
Excel for Microsoft 365Excel for Microsoft 365 for MacExcel 2024Excel 2024 for MacExcel 2021Excel 2021 for MacExcel for iPadExcel for iPhoneExcel for Android tabletsExcel for Android phones
=RANDARRAY([rows],[columns],[min],[max],[whole_number])
Hover argument names in the table for details.
Output typeArray
Popularity30 / 100
VolatileYes
Dynamic ArrayYes
Download sample .xlsx ▦ Try in Playground
Dedicated file for this function — safe & lightweight · sample data + live formulas
⬇ Download Sample Workbook
A dedicated .xlsx for =RANDARRAY() with Persian sample data & live formulas — open in Excel and practice.
- Sheet “Sample” — data table + formula in place
- Sheet “Guide” — syntax, arguments & tips from this page
- Instant & secure (token + rate limit)
Quiz this function
%d questions — syntax, example & errors — test yourself!
◧ Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
rows] |
Number | Optional | The number of rows to be returned |
columns] |
Number | Optional | The number of columns to be returned |
min] |
Number | Optional | The minimum number you would like returned |
max] |
Number | Optional | The maximum number you would like returned |
integer] |
Logical | Optional | Return a whole number or a decimal valueTRUE for a whole numberFALSE for a decimal number |
▣ Examples
Example 1
=RANDARRAY(10, 1, 1, 100, TRUE)
Example 2
=SORTBY(A2:A20, RANDARRAY(19))
💬 Comments & Q&A 0 approved
🔒 Your comment will be published after review.Share your thoughts — visible after admin approval
No comments yet — be the first!