RandomFloat

From Onset Developer Wiki
Revision as of 10:48, 6 January 2020 by 28days (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
RandomFloat

Type: Function
Context: Server & Client
Introduced: v1.0

Description

Get a pseudo-random float. Negative ranges are supported as of v1.0.2.

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

RandomFloat(0, 10) -- Returns a number between 0 to 10

See also