API random

Returns a random number within the specified interval. rand = math.random([ [low, ] high]) rand = random([ [low, ] high])

Arguments

 * low : Number - lower integer limit on the returned random value.
 * high : Number - upper integer limit on the returned random value.

Returns

 * rand : Number - Generated random value. If no arguments were specified, the value is a uniformly-distributed decimal between 0 (inclusive) and 1 (exclusive). Otherwise, returns a uniformly-distributed integer between  (1 if not specified) and , both bounds inclusive.