| $random(min, max[, option])
The random function will return a random number in between min and max. If any options
are specified, it will be parsed through the $math function. Max and Min may be floating point numbers, but
they will be rounded to an integer to compute the range of the randomness.
if you have 1.3 - 2.5, the actual result will be somewhere between 1.3 and 2.3.
Example:
| $random() example |
# Return a random number between 1 and 10 for !lucky for players on pcmd_lucky cmd /say_stat * Your lucky number is $random(1,10); # Amazing fortune telling abilities... on pcmd_fortune cmd /say_stat * You may die in $random(1,300,.2) second$(#s);
|
|
|