random

random ( number maxNumber , boolean|default:false _isInt , number _minNumber ) : number

Generate a random number.

Parameters

maxNumber

_isInt (optional)

It returns a float by default. If it is set to true here, it returns an integer.

_minNumber (optional)

The minimum number for this random value.
If maxNumber = 5 and _minNumber = 7.5, random values can be 5.4, 6.8, 7.3 but not 8 or 3.