Dice Roll Expected Value Calculator

Current number of variables: 0/3

Usage Guide

  1. Write an expression you would like to evaluate to the input box
  2. Click Simulate (Hotkey = S)

Binary Operators (combine two values)

Unary Operators (apply to one value)

Examples

Variables

Allow you to evalute the expression for multiple values at the same time.

Each variable has - Name - string that you can write inside the expression - Value - set of values that the variable can have.

Inside the dice expression, each instance of name will be substituted for one value from the set (each instance of variable x will get the same value assignment in a single experiment), and then the experiment is run. We test every possible combination of value assignments and then report the results in a table.

Example

For example, we would like to see how much damage we can do against multiple AC variants at the same time. Our attack and damage rolls looks like

# Attack roll
d20 + 7 + d4

# Damage roll
2d6 + 4

We have - +7 attack bonus - Buff that adds 1d4 to our hit rolls - We deal 2d6 + 4 damage on hit

We want to see how we fare against foes with some reasonable AC values, e.g. $\text{AC} \in \set{10, 11, ... , 20}$. We can use a variable for the AC. 1. Click on the Add Variable button 2. Set name to AC 3. Set values to 10-20

Now we can write a dice expression using the variable.

(d20 + 7 + d4 >= AC) * (2d6 + 4)

Now, when we press Simulate, we will run many experiments, substituting AC in the expression for each possible value in the value set of the variable AC. In the summary column, we will get a table with the results, one row for each value of AC.

If we would like to evaluate multiple attack bonuses, we can use another variable, e.g. n with values set to 5-9, and rewrite the expression to

(d20 + n + d4 >= AC) * (2d6 + 4)