Rand 29
Signature
Description
Does the same as the Rand function with the difference being that with this one the max number can also be set.
Arguments
Max Number
Controls the max range of the random number depending on the sign.
Positive: The random number will be between
0
andmaxNumber - 1
.Negative: The random number will be between
maxNumber
and-1
.
Examples
Get a random number between 0 and 5.
Get a random number between -5 and -1.
Last updated