Random
Random variables generate numbers or pick one option from a list. Defaults can be set in the command response and overridden by command input.
Random number
Section titled “Random number”{random.int} picks a whole number from 1 through 100. To set a range, put the minimum first and the maximum second: {random.int 10 20}.
For a !roll command, use this response:
| Typed in chat | Range | Example result |
|---|---|---|
!roll | 1–100 | 42 |
!roll 6 | 1–6 | 4 |
!roll 20 10 | 10–20 | 17 |
Chat arguments use a different order: maximum, then minimum. A single chat argument changes only the maximum; the minimum stays as configured in the response. The maximum must be greater than the minimum. Both endpoints are included.
Random choice
Section titled “Random choice”For a !pick command, use this response:
| Typed in chat | Choices used | Example result |
|---|---|---|
!pick | Pizza, Sushi | Pizza |
!pick "Ice cream" Cake | Ice cream, Cake | Ice cream |
Choices typed after the command replace the configured choices. There is no fixed number of choices. In the variable editor, put each choice in its own input; when typing syntax or chat commands, wrap choices containing spaces in quotes.
Results are examples, not fixed answers. Each use makes a new random selection.