random
Modified on Tue, 22 Aug 2023
Description
Generate a random number within a specified range
Syntax
random(min, max)
Parameters
Input Parameter | Type | Description |
---|---|---|
min | number | The lower bound of the random number range |
max | number | The upper bound of the random number range |
Return value
Type |
---|
number |
Sample
Example | Result | Description |
---|---|---|
random(1, 100) | 73 | Returns a random number between 1 and 100 |
To view all the Math and Number functions, click here.
See Also
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article