RandFloat: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
Line 11: Line 11:


==Example==
==Example==
<syntaxhighlight lang="lua">serverChat ( "Random float: ", randFloat () )</syntaxhighlight>
<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 () )