Difference between revisions of "Ifrnd"

From EDukeWiki
Jump to navigation Jump to search
 
Line 1: Line 1:
 
ifrnd <value> { <do somethin!> }
 
ifrnd <value> { <do somethin!> }
  
An if condition stating the probability of it 'doin somethin!' in this case.
+
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%'
 
NOTE: It's out of 256 as max, so 'ifrnd 256 = 100%', and 'ifrnd 128 = 50%'

Revision as of 12:14, 12 July 2005

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%'