no edit summary
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
{{wowapi}} __NOTOC__ | |||
Performs a random roll between two numbers. | |||
{{Code/Begin}} | |||
RandomRoll([low, [high]]) | |||
{{Code/End}} | |||
== Parameters == | |||
<big>'''Arguments'''</big> | |||
:(low, high) | |||
; | :;low : Integer - lowest number (default 1) | ||
:;high : Integer - highest number (default 100) | |||
- | <big>'''Returns'''</big> | ||
: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''' | |||