Skip to content

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.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:

{random.int 1 100}
Typed in chatRangeExample result
!roll1–10042
!roll 61–64
!roll 20 1010–2017

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.

For a !pick command, use this response:

{random.choice Pizza Sushi}
Typed in chatChoices usedExample result
!pickPizza, SushiPizza
!pick "Ice cream" CakeIce cream, CakeIce 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.