Random
From Onset Developer Wiki
Description
Get a pseudo-random number. Negative ranges are supported as of v1.0.2.
Syntax
Random([Min, Max])
Parameters
- Min (optional)
The minimum number. - Max (optional)
The maximum number.
Return Value
- Returns the random between the range.
Example
<syntaxhighlight lang="Lua"> Random(0, 10) -- Returns a number between 0 to 10 <syntaxhighlight>