Rand 29
Signature
int rand_29(int maxNum); //id:0x0029Description
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
0andmaxNumber - 1.Negative: The random number will be between
maxNumberand-1.
Examples
Get a random number between 0 and 5.
rand_29(6)Get a random number between -5 and -1.
rand_29(-5)Last updated