| Main Page | Recent changes | Edit this page | Page history Printable version | Disclaimers | Privacy policy | Not logged in Log in | Help

# Ifrnd

From EDukeWiki

Categories: Duke3D 1.3/1.5 commands | If conditions

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.

Retrieved from "http://sc8-pr-shell1.sourceforge.net../../../i/f/r/Ifrnd.html"

This page has been accessed 170 times. This page was last modified 16:29, 24 September 2005 by Richard Gobeille. Based on work by Peter Green and Hibiki. Content is available under SourceForge.

Main Page
Recent changes
Random page
EDuke32.com

Edit this page
Discuss this page
Page history
What links here
Related changes

Special pages
Bug reports