![Forrest logo](/images/logo.png)
rolldice:tldr:70d07
This command uses the "rolldice" function or command to simulate rolling a certain number of dice with a specific number of sides and an optional additional value.
-
"${2}" indicates that you are rolling 2 dice. The number within the curly braces represents the quantity of dice you want to roll.
-
"d" is a shorthand notation used in gaming for indicating dice. In this case, it signifies that the dice have 20 sides. The number after "d" tells us the number of sides on each die.
-
"+5" is an optional addition to the result. The plus sign signifies adding a value after rolling the dice. In this case, 5 is added to the final result of rolling the dice.
For example, if we assume the command is executed: "rolldice 2d20+5", it will simulate rolling two 20-sided dice and then add 5 to the total result. The output will provide a random number within the range of 7 to 45 (if both dice roll the lowest possible value, 1, and the additional 5 is considered).