WoW:API RandomRoll: Difference between revisions
Jump to navigation
Jump to search
(removed code block) |
m (Move page script moved page API RandomRoll to API RandomRoll without leaving a redirect) |
||
(3 intermediate revisions by 3 users not shown) | |||
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 | :*<s>If only ''low'' is provided, it is taken as the highest number</s> | ||
:*Does the same as '''/random low high''' | |||
:**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 '''[[MACRO random|/random low high]]''' |
Latest revision as of 04:47, 15 August 2023
← WoW API < RandomRoll
Performs a random roll between two numbers.
RandomRoll([low, [high]])
Parameters[edit]
Arguments
- (low, high)
- low
- Integer - lowest number (default 1)
- high
- Integer - highest number (default 100)
Returns
- nil
Example[edit]
RandomRoll(1, 10)
Yield: <Your name> rolls. <number> (1-10)
Details[edit]
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