Returns a random integer given a range of integers.
If just the range is passed in, the random value returned will be between 1 and the range.
If both the lowerValue and the optional upperValue is passed in, the random value returned will be between the lowerValue and the upperValue.
The maximum value that can be passed to this function is 2147483647.
Syntax: |
---|
value = Random( range [, or lowerValue ], [ upperValue ] ) |
Parameter: |
Description: |
---|---|
range |
A range value, or the Lower value of range. |
[, or lowerValue ] |
Optional: Lower value of range. |
[ upperValue ] |
Optional: Upper value of range. |
Example: |
---|
' Returns a random number from 1 to 10 |
Returns: |
A random value that is within the range values specified. |
Links: |
---|
See Also: |
Edit Time: 9/18/2020 12:25:01 PM |
Topic ID#: 481 |