RandFloat: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
Line 4: Line 4:


==Syntax==
==Syntax==
float [[randFloat]] ()
<syntaxhighlight lang="lua">randFloat ()</syntaxhighlight>


===Required Arguments===
===Required Arguments===
Line 11: Line 11:


==Example==
==Example==
[[serverChat]] ( "Random float: ", [[randFloat]] () )
<syntaxhighlight lang="lua">serverChat ( "Random float: ", randFloat () )</syntaxhighlight>

Revision as of 03:21, 18 May 2006

Description

This function returns a random float between 0 and 1.

Syntax

randFloat ()

Required Arguments

None.

Example

serverChat ( "Random float: ", randFloat () )