Displayrand
displayrand <gamevar>
displayrandvar <gamevar> <value>
displayrandvarvar <gamevar> <value>
This function generates a random number and assigns it to <gamevar>.
The displayrandvar commands limit the number to be between 0 and <value>.
displayrandvarvar takes a gamevar rather than a constant or a defined label for <value>.
Since this function is sync safe, it can be used in unsynchronized code.
See randomseed.