Ifrnd

From EDukeWiki
Revision as of 06:29, 29 August 2005 by Plugwash (talk | contribs)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

ifrnd <value> { <do somethin!> }

An if condition stating the probability of it 'doin somethin!' in this case.

NOTE: It's out of 256 as max, so 'ifrnd 256 = 100%', and 'ifrnd 128 = 50%'

This command must only be used in synchronised code or you will cause desyncs. for display code use displayrand instead.