Hello, welcome to the magical die editor!

This is where a graph will be drawn in wondrous ASCII.

Die Roll:

Help On dicecalc

Dice calc lets you visualize the result of rolling a bunch of dice. It supports a simple language to describe the dice you roll, based upon the common 'd' notation.

Rather than bore you with BNF descriptions of the dice format, I shall instead just present examples.

CommandMeaning
1d4Roll a 4 sided die, numbered 1..4
1d4-3Roll a 4 sided die and subtract 3
3d20Roll three 20-sided dice and total them up
1d6+1d3Add a 6-sided die roll to a 3-sided die roll
1d20>5Take the maximum of 5 and a 20-sided die roll
1d20<1d16-3Take the minimum of a 20-sided die roll and a (16-sided die roll minus 3)
1d4-(1d2+1d3)Subtract from a 1d4 roll the sum of a 1d2 and 1d3 roll.
2X(1d6+3)Roll a 1d6, add 3, and then multiply the result by 2.
0.75X(1d6+3)Roll a 1d6, add 3, and then multiply the result by 0.75. Round down.
30%1d430% of the time return 1d4, otherwise 0
(1d3)d(1d4)Roll 1d3 to determine number of dice to roll. For each die, roll 1d4 to determine the sides on that die.

In case you like BNF type stuff, here's the CFG

A -> S > A | S < A | S
S -> T | S + T | S - T
T -> N % M | M
M -> N X D | D
D -> N d N | N
N -> # | ( A )
Despite what this may suggest, the N for X prefices must be a simple float value. The N for % prefixes must also be a simple float.