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
analyzeto 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
- Wait for the status to show Dicelab WebAssembly ready.
- Stay in Simple mode for a single expression, or press Notebook to work with multiple cells and aliases.
- Type a roll such as
d20 adv + 7and press Shift+Enter (or the run button). - Change the log level with
log info,log debug,log off, or toggle via the log button. - Run
analyze <expression>to see distributions with mean, range, and quantiles.
Popular examples
Where to go next
- Learn the buttons, modes, logging, character import UI, and tips in the UI guide.
- See every dice keyword, operator, and on-crit mode in the Dice language reference.
- Copy ready-made snippets in the Quick reference.