Randvar: Difference between revisions
| No edit summary | mNo edit summary | ||
| Line 1: | Line 1: | ||
| randvar <gamevar> <value> | |||
| This function generates a random number from 0 to <value> and assigns it to <gamevar>. | |||
| in the  | This command should not be used in unsynchronized code.  See the list of [[unsynchronized events]] for   a full list. | ||
| In prior releases of DOS EDuke, randvar and randvarvar contained a flaw that would desynchronize multiplayer.  The bug has since been corrected for post-1.0 releases of EDuke32. | |||
Revision as of 14:55, 1 February 2005
randvar <gamevar> <value>
This function generates a random number from 0 to <value> and assigns it to <gamevar>.
This command should not be used in unsynchronized code. See the list of unsynchronized events for a full list.
In prior releases of DOS EDuke, randvar and randvarvar contained a flaw that would desynchronize multiplayer. The bug has since been corrected for post-1.0 releases of EDuke32.
