Displayrandvar: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
mNo edit summary
One (talk | contribs)
No edit summary
Line 1: Line 1:
displayrandvar <gamevar> <value>
'''displayrandvar''' <gamevar> <value>


This function generates a random number from 0 to <value> and assigns it to <gamevar>.
This function generates a random number from 0 to <value> and assigns it to <gamevar>.

Revision as of 11:07, 4 May 2009

displayrandvar <gamevar> <value>

This function generates a random number from 0 to <value> and assigns it to <gamevar>.

Unlike randvar, this command can be used in unsynchronized code.