random

v0.1.6
random(min, max);

Get a random number

Arguments

minThe minimum of the range
maxThe maximum of the range

Returns

numberThe random value

random()      -- random number between 0 and 1
random(3)     -- random number between 0 and 3
random(3, 12) -- random number between 3 and 12

random({ 'A', 'B', 'C' }) -- random element in table
See random in lu5_math.h