This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
random_number [2018/08/29 09:05] – justin | random_number [2020/02/04 20:16] – justin | ||
---|---|---|---|
Line 5: | Line 5: | ||
====Examples: | ====Examples: | ||
- | < | + | < |
wait(random(1, | wait(random(1, | ||
</ | </ | ||
Waits for a random amount of time between 1 and 5 seconds. | Waits for a random amount of time between 1 and 5 seconds. | ||
- | < | + | < |
- | if random(0, 100) < 25 then | + | if random(0, 100) <= 25 then |
give_item(" | give_item(" | ||
else | else |