Mirror Engine
V5
How To
Mirror Engine Logo

Mirror Engine API


Mirror Engine API / math / random

Function: random()

function random(min: number, max: number): number

Return a pseudo-random number between min and max. The number generated is in the range [min, max), that is inclusive of the minimum but exclusive of the maximum.

Parameters

min

number

Lower bound for range.

max

number

Upper bound for range.

Returns

number

Pseudo-random number between the supplied range.

Mirror Engine Logo