This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
crpl:docs:randint [2013/01/14 14:11] – external edit 127.0.0.1 | crpl:docs:randint [2015/03/19 17:24] – added example warren | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | <- [[crpl: | ||
===== RandInt | ===== RandInt | ||
Line 7: | Line 7: | ||
=== Description === | === Description === | ||
- | Pops Min and Max from the stack and pushes a random integer to stack where min <= RandInt < max. | + | Pops Min and Max from the stack and pushes a random integer to stack where min %%<=%% RandInt < max. |
=== Examples === | === Examples === | ||
- | < | + | < |
+ | #Creates a dancing number readout. Very high tech hackery. | ||
+ | 0 10 RandInt | ||
+ | 0 10 RandInt concat | ||
+ | 0 10 RandInt concat | ||
+ | 0 10 RandInt concat | ||
+ | SetPopupText | ||
+ | |||
+ | :awake | ||
+ | TRUE OperateWhilePaused | ||
+ | </ | ||