Lipi Reference Lipi

Functions

math.random()

Returns a pseudo-random value. The function will generate a different sequence of values for each script execution. Using the same value for the optional seed argument will produce a repeatable sequence.

Syntax

                math.random(series float min, series float max) → series float
              

Arguments

min series float The lower bound of the range of random values. The value is not included in the range. The default is 0.
max series float The upper bound of the range of random values. The value is not included in the range. The default is 1.

Return Type

series float