WoW:API RandomRoll: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
(removed code block)
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 ==

Revision as of 00:20, 13 May 2007

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)

Result: <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