Fandom

WoWWiki

API RandomRoll

104,634pages on
this wiki
Add New Page
Talk0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

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

Also on Fandom

Random Wiki