RandFloat: Difference between revisions
Jump to navigation
Jump to search
Line 11: | Line 11: | ||
==Example== | ==Example== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua">outputChatBox ( "Random float: ", randFloat () )</syntaxhighlight> |
Revision as of 02:39, 20 May 2006
Description
This function returns a random float between 0 and 1. This can act as a random on/off switch for something.
Syntax
randFloat ()
Required Arguments
None.
Example
outputChatBox ( "Random float: ", randFloat () )