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)
 
(6 intermediate revisions by 6 users not shown)
Line 1: Line 1:
Performs a random roll between two numbers. This is the same as /roll, so the roll is shown to people around you.
{{wowapi}}


  RandomRoll("low", "high");
Performs a random roll between two numbers.
  RandomRoll([low, [high]])


----
== Parameters ==
; ''Example:'' :
<big>'''Arguments'''</big>
RandomRoll("1", "100");
:(low, high)


; ''Result:'' : YourNameHere rolls 69. (1-100)
:;low : Integer - lowest number (default 1)
:;high : Integer - highest number (default 100)
 
<big>'''Returns'''</big>
:nil
 
== Example ==
 
  RandomRoll(1, 10)
 
'''Yield:''' ''<Your name>'' rolls. ''<number>'' (1-10)
 
== Details ==
:*<s>If only ''low'' is provided, it is taken as the highest number</s>
 
:**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