Forrest logo
back to the rolldice tool

rolldice:tldr:17d0e

rolldice: Roll a 20 sided dice two times.
$ rolldice ${2}xd${20}
try on your machine

The command "rolldice ${2}xd${20}" is specifying a roll of two 20-sided dice, using a variable substitution.

Here's a breakdown of the command:

  1. "rolldice": This is likely a command or function that performs a dice roll.
  2. "${2}": This is a variable substitution. The value of 2 will be substituted in place of "${2}" in this case. It indicates the number of dice to be rolled.
  3. "xd": This is a notation commonly used to indicate the number of dice to be rolled. In this case, it means "x" number of dice, where "x" is the value of the variable substitution (${2} in this case).
  4. "${20}": Similarly, this is a variable substitution. The value of 20 will be substituted in place of "${20}". It indicates the number of sides on each dice.

So, when the command is executed, it will essentially perform a roll of two 20-sided dice.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the rolldice tool