Lore archive · Warcraft Wiki, 2023 dump
API random
Last wiki revision 2022-08-01
Returns a random number within the specified interval. rand = math.random([ [low, ] high]) rand = random([ [low, ] high])
- low: - lower integer limit on the returned random value.
- high: - upper integer limit on the returned random value.
- rand: - 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.
Source
https://warcraft.wiki.gg/wiki/API_random · retrieved 2023-11-13 · CC BY-SA 4.0
Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.
This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.