From EDukeWiki
Revision as of 18:42, 24 February 2011 by Hendricks266 (talk | contribs)
Jump to navigation Jump to search

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.