random();
Get a random number.
random(max);
Arguments
max
The maximum of the rangerandom() -- random number between 0 and 1
random(3) -- random number between 0 and 3
random(min, max);
Arguments
min
The minimum of the rangemax
The maximum of the rangerandom(3, 12) -- random number between 3 and 12
random(arr);
Arguments
arr
The array to randomly select an item fromrandom({ 'A', 'B', 'C' }) -- random element in table
Returns
number
The random value