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