WoW:API RandomRoll: Difference between revisions

m
Move page script moved page API RandomRoll to WoW:API RandomRoll without leaving a redirect
No edit summary
m (Move page script moved page API RandomRoll to WoW:API RandomRoll without leaving a redirect)
 
(4 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{wowapi}} __NOTOC__
{{wowapi}}


Performs a random roll between two numbers.
Performs a random roll between two numbers.
{{Code/Begin}}
RandomRoll([low, [high]])
RandomRoll([low, [high]])
{{Code/End}}


== Parameters ==
== Parameters ==
Line 20: Line 18:
   RandomRoll(1, 10)
   RandomRoll(1, 10)


'''Result:''' ''<Your name>'' rolls. ''<number>'' (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]]'''
Anonymous user