Contents
← WoW API < RandomRoll
Performs a random roll between two numbers.
RandomRoll([low, [high]])
Parameters[edit | edit source]
Arguments
- (low, high)
- low
- Integer - lowest number (default 1)
- high
- Integer - highest number (default 100)
Returns
- nil
Example[edit | edit source]
RandomRoll(1, 10)
Yield: <Your name> rolls. <number> (1-10)
Details[edit | edit source]
If only low is provided, it is taken as the highest number
- Looks like this function now requires a high and low. I am unable to get it to run any other way.
- Does the same as /random low high
Community content is available under CC-BY-SA unless otherwise noted.