→ WoW API
Returns a random number within the specified interval.
rand = math.random([ [low, ] high]) rand = random([ [low, ] high])
- Number - lower integer limit on the returned random value.
- Number - upper integer limit on the returned random value.
- 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
low(1 if not specified) and
high, both bounds inclusive.