(Not So) Random Number Generator Syntax Check

Asked Aug 12, 2020·1 reply·Last activity 6 years ago·Open in Discord ↗
Archived from the original community forum
Things may have changed since it was written. Still stuck? Ask the community on Discord.

Hello, I'm wondering if the following code will run correctly, or if it has any syntax errors. The purpose is to pick a random number (0-11) and
if it is 0, to pick a second random number (0-10) and display the second number,
if it is 11, to pick a second random number (1-11) and display the second number,
and if it is any number between 1 and 10, to display that number. (this way 0 and 11 both have extremely low chances of being shown)

1 reply

The command functions perfectly only change I would make is changing $(query) to $(touser). But otherwise there are no issues.