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.
Example
pc.math.random(0, 10); // returns a random number between 0 and 10
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.