{
  "slug": "dice-roller",
  "title": "Dice Roller",
  "heading": "Dice Roller",
  "category": "math",
  "url": "https://www.revenuelab.fyi/toolbox/dice-roller",
  "summary": "Roll N dice with X sides.",
  "description": "Standard tabletop dice roller — supports d4, d6, d8, d10, d12, d20, d100.",
  "formula": null,
  "dateModified": "2026-10-03",
  "run_url": "https://www.revenuelab.fyi/api/public/calc?tool=dice-roller",
  "inputs": [
    {
      "id": "count",
      "label": "How many dice",
      "kind": "number",
      "hint": null,
      "default": 2,
      "unit": null,
      "min": 1,
      "max": 100
    },
    {
      "id": "sides",
      "label": "Sides per die",
      "kind": "select",
      "hint": null,
      "default": "6",
      "options": [
        {
          "value": "4",
          "label": "d4"
        },
        {
          "value": "6",
          "label": "d6"
        },
        {
          "value": "8",
          "label": "d8"
        },
        {
          "value": "10",
          "label": "d10"
        },
        {
          "value": "12",
          "label": "d12"
        },
        {
          "value": "20",
          "label": "d20"
        },
        {
          "value": "100",
          "label": "d100"
        }
      ]
    },
    {
      "id": "reroll",
      "label": "Re-roll (any number to re-randomize)",
      "kind": "number",
      "hint": null,
      "default": 0,
      "unit": null,
      "min": null,
      "max": null
    }
  ],
  "outputs": [
    {
      "id": "total",
      "label": "Total",
      "format": "number",
      "hint": null,
      "primary": true
    },
    {
      "id": "rolls",
      "label": "Individual rolls",
      "format": "raw",
      "hint": null,
      "primary": false
    }
  ],
  "worked_example": {
    "inputs": [
      "How many dice: 2",
      "Sides per die: d6",
      "Re-roll (any number to re-randomize): 0"
    ],
    "outputs": [
      "Total: 8",
      "Individual rolls: 4, 4"
    ]
  },
  "how_to": {
    "title": "How to use this",
    "steps": [
      "Enter how many dice.",
      "Enter sides per die.",
      "Enter re-roll (any number to re-randomize).",
      "Read your total on the right — it updates as you type.",
      "Hit Share to keep the scenario or send it to someone."
    ]
  },
  "scenarios": [
    {
      "name": "Conservative",
      "description": "Lower-end numbers — what if things land soft?",
      "values": {
        "count": 1,
        "sides": "6",
        "reroll": 0
      }
    },
    {
      "name": "Typical",
      "description": "Defaults — the most common real-world setup.",
      "values": {
        "count": 2,
        "sides": "6",
        "reroll": 0
      }
    },
    {
      "name": "Ambitious",
      "description": "Higher-end numbers — what if things really pop?",
      "values": {
        "count": 3,
        "sides": "6",
        "reroll": 0
      }
    }
  ],
  "limitations": [
    "Results are rounded for display; the underlying calculation keeps full precision.",
    "Very large or very small inputs may hit floating-point limits in the browser.",
    "Inputs outside the accepted range are clamped rather than rejected."
  ],
  "faq": [
    {
      "q": "How does the dice roller work?",
      "a": "Standard tabletop dice roller — supports d4, d6, d8, d10, d12, d20, d100."
    },
    {
      "q": "What do I need to enter?",
      "a": "3 values: how many dice, sides per die, and re-roll (any number to re-randomize). Each field starts with a sensible default, so you can change one number at a time and watch the result move."
    },
    {
      "q": "What does the total result mean?",
      "a": "It is returned as a whole number and updates live as you edit the inputs, so you can compare two or three versions of a scenario in a few seconds."
    },
    {
      "q": "Is this calculator free, and do I need an account?",
      "a": "Yes, it's free, and no account is required. Nothing you type is stored on our servers — the maths runs entirely in your browser."
    },
    {
      "q": "How accurate is the result?",
      "a": "It applies the standard formula exactly, so the arithmetic is precise. Results are rounded for display; the underlying calculation keeps full precision."
    },
    {
      "q": "Who is this tool for?",
      "a": "It's built for students, developers, and anyone who needs the answer right now without setting up a spreadsheet."
    }
  ],
  "related": [
    "https://www.revenuelab.fyi/toolbox/random-number"
  ],
  "license": "CC-BY-4.0",
  "citation": "RevenueLab — Dice Roller (https://www.revenuelab.fyi/toolbox/dice-roller)"
}