WoW:API RandomRoll: Difference between revisions
Jump to navigation
Jump to search
(removed code block) |
m (catfix, Replaced: '''Result:''' → '''Yield:''') |
||
Line 18: | Line 18: | ||
RandomRoll(1, 10) | RandomRoll(1, 10) | ||
''' | '''Yield:''' ''<Your name>'' rolls. ''<number>'' (1-10) | ||
== Details == | == Details == | ||
:*If only ''low'' is provided, it is taken as the highest number | :*If only ''low'' is provided, it is taken as the highest number | ||
:*Does the same as '''/random low high''' | :*Does the same as '''/random low high''' |
Revision as of 22:33, 8 July 2008
← WoW API < RandomRoll
Performs a random roll between two numbers.
RandomRoll([low, [high]])
Parameters
Arguments
- (low, high)
- low
- Integer - lowest number (default 1)
- high
- Integer - highest number (default 100)
Returns
- nil
Example
RandomRoll(1, 10)
Yield: <Your name> rolls. <number> (1-10)
Details
- If only low is provided, it is taken as the highest number
- Does the same as /random low high