This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| prpl:randint [2016/12/21 12:03] – Oblivion | prpl:randint [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 4: | Line 4: | ||
| ^Arguments^Result^Notation^ | ^Arguments^Result^Notation^ | ||
| - | | Number 1, Number 2 | Number Inbetween| [ i1 i2 - i3 ] | | + | | Number 1, Number 2 | Int | [ i1 i2 - i3 ] | |
| === Description === | === Description === | ||
| - | Returns a random | + | Returns a random |
| === Examples === | === Examples === | ||
| Line 15: | Line 15: | ||
| stack.Push(new Data(min+amt)); | stack.Push(new Data(min+amt)); | ||
| - | 0 10 RandInt -> | + | 0 10 RandInt -> |
| + | // Inclusive min Exclusive max means that 0 10 RandInt CAN [inclusive] | ||
| + | // A workaround for between 0 and 10 both inclusive is to do 0 11 RandInt, so 11 will exclude but 10 will include [basically, 0 10 1 add RandInt] | ||
| <-Int trace | <-Int trace | ||
| </ | </ | ||