Dicelab overview

What Dicelab does

  • Roll for tabletop play: Advantage/disadvantage, keep/drop, rerolls, attack crit ranges, and on-crit damage modes—ideal for dungeons, starships, and any d20-based session.
  • Analyze outcomes: Run analyze to see probability mass functions (PMFs) for one or many expressions and compare builds before game night.
  • Work like a notebook: Add, duplicate, and reorder cells; each keeps its log output and execution count.
  • Save your state: Notebook, aliases, theme, and log level persist between visits so you can prep, play, and resume mid-campaign.
  • Bring in characters: Use the UI's Import from D&D Beyond panel to seed ability mods, proficiency, and saving throws without typing a command.
  • Two views: Simple mode for one-off rolls; Notebook mode for multi-step math and analysis.

Quick start

  1. Wait for the status to show Dicelab WebAssembly ready.
  2. Stay in Simple mode for a single expression, or press Notebook to work with multiple cells and aliases.
  3. Type a roll such as d20 adv + 7 and press Shift+Enter (or the run button).
  4. Change the log level with log info, log debug, log off, or toggle via the log button.
  5. Run analyze <expression> to see distributions with mean, range, and quantiles.
d20 adv + 5
4d6 dl 1
(d20 attack crit19..20 + 7) >= 17 ? 2d6 + 4 : 0
(d20 attack + 6 oncrit double_all) >= 15 ? 2d6 + 4 : 0
analyze 3d6, 2d20 kh 1 + 5
let bless = 1d4
(d20 attack + 8 + bless) >= 18 ? 2d8 + 5
(4d6 dl 1)^6   # roll six ability scores

Where to go next