Wikia

WoWWiki

Changes: API RandomRoll

Edit

Back to page

m (catfix, Replaced: '''Result:''' → '''Yield:''')
m
 
Line 22: Line 22:
 
== 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 '''[[MACRO random|/random low high]]'''

Latest revision as of 09:06, January 10, 2009

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
  • Does the same as /random low high

Around Wikia's network

Random Wiki