Skip to content

Random

The random command group provides various entertainment tools for generating random outcomes. Whether you need to settle a debate with a coin flip, decide on a number, or get a cryptic message from the magic 8-ball, these commands add an element of chance to your server interaction.

Syntax

The random command can be used in two ways:

Slash Command:

Text Only
/random coinflip
/random dice [sides:INTEGER]
/random 8ball question:STRING [cow:true/false]
/random number [minimum:INTEGER] [maximum:INTEGER]

Prefix Command:

Text Only
$random coinflip
$random dice [sides]
$random 8ball <question> [-cow]
$random number [minimum] [maximum]
$rand coinflip
$rand dice [sides]
$rand 8ball <question> [-cow]
$rand number [minimum] [maximum]

Aliases:

You can also use these aliases instead of random:

  • rand

Subcommands

coinflip

Flip a virtual coin to get either "Heads" or "Tails".

Syntax:

Text Only
/random coinflip
$random coinflip
$random cf

Aliases:

  • cf

dice

Roll a dice with a specified number of sides.

Syntax:

Text Only
/random dice [sides:INTEGER]
$random dice [sides]
$random d [sides]

Parameters:

  • sides (Type: INTEGER, Default: 6): The number of sides on the dice. (Min: 2)

Aliases:

  • d

8ball

Ask the magic 8-ball a question and receive a random response.

Syntax:

Text Only
/random 8ball question:STRING [cow:true/false]
$random 8ball <question> [-cow]
$random eightball <question> [-cow]
$random 8b <question> [-cow]

Parameters:

  • question (Type: STRING, Required): The question you want to ask.
  • cow (Type: BOOLEAN, Default: false): Whether to display the response in a cowsay format.

Aliases:

  • eightball, 8b

number

Generate a random integer between a minimum and maximum value.

Syntax:

Text Only
/random number [minimum:INTEGER] [maximum:INTEGER]
$random number [minimum] [maximum]
$random n [minimum] [maximum]

Parameters:

  • minimum (Type: INTEGER, Default: 0): The lower bound.
  • maximum (Type: INTEGER, Default: 100): The upper bound.

Aliases:

  • n

Usage Examples

Decision Making

Quickly settle a choice with a coin flip.

Text Only
/random coinflip

Complex Dice Rolls

Roll a 20-sided dice for a game or activity.

Text Only
/random dice sides:20

Cryptic Advice

Ask the magic 8-ball for its opinion on a matter.

Text Only
/random 8ball question:"Should I eat pizza?"
/random 8ball question:"Is it going to rain?" cow:true

Random IDs or Numbers

Generate a number between 1 and 1000.

Text Only
/random number minimum:1 maximum:1000

Response Format

When executed, each subcommand returns results in different formats:

  • Coinflip: Returns a simple message: "You got heads!" or "You got tails!"
  • Dice: Returns an embed showing the roll result with the number rolled
  • 8ball: Returns the response wrapped in ASCII art (penguin by default, or cow if cow:true is specified)
  • Number: Returns a message showing the generated random number within your specified range
  • /xkcd - View and share XKCD comics