WoW API: RandomRoll

From AddOn Studio
Revision as of 12:39, 9 November 2006 by WoWWiki>Borlox
Jump to navigation Jump to search

WoW API < RandomRoll

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

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