Random_integer_between
- 27 May 2022
- 1 Minute to read
- DarkLight
- PDF
Random_integer_between
- Updated on 27 May 2022
- 1 Minute to read
- DarkLight
- PDF
Article Summary
Given two integers, returns a random integer between them. The range is inclusive, meaning that the returned value may be equal to either the start or the end value.
Function signature
RANDOM_INTEGER_BETWEEN(min: Number, max: Number) => Number
Parameter | Description |
---|---|
Min | Number to start |
Max | Number to end |
Examples
Formula | Return value |
---|---|
RANDOM_INTEGER_BETWEEN(1,100) | 58 |
RANDOM_INTEGER_BETWEEN(100,1) | 73 |
RANDOM_INTEGER_BETWEEN(1,10) | 6 |
RANDOM_INTEGER_BETWEEN(24,120) | 114 |
Was this article helpful?