RandomFloat: Difference between revisions
From Onset Developer Wiki
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{Info|Function|Server & Client|1.0}} | {{Info|Function|Server & Client|1.0}} | ||
{{FuncDescription| | {{FuncDescription|Get a pseudo-random float.}} | ||
{{FuncSyntax|RandomFloat([, Min, Max])}} | {{FuncSyntax|RandomFloat([, Min, Max])}} | ||
{{FuncParameters}} | {{FuncParameters}} | ||
{{FuncParamOptional|Min| | {{FuncParamOptional|Min|The minimum float.}} | ||
{{FuncParamOptional|Max| | {{FuncParamOptional|Max|The maximum float.}} | ||
{{FuncReturnValue| | {{FuncReturnValue|Returns the random float between the range.}} | ||
== Example == | == Example == | ||
Line 15: | Line 15: | ||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
* [[Random]] |
Revision as of 13:49, 16 November 2019
Description
Get a pseudo-random float.
Syntax
RandomFloat([, Min, Max])
Parameters
- Min (optional)
The minimum float. - Max (optional)
The maximum float.
Return Value
- Returns the random float between the range.
Example
__EDIT_ME__