happytails.ai

Dice Roller

Open Dice Roller on Happytails.ai. This view has the same page content and links, with explicit tool capabilities. Read the processing notes before using a tool.

Tool capabilities

{
  "id": "dice-roller",
  "category": "calculators",
  "built": true,
  "requirements": "Dice count/sides and readable results; uniform random outcomes.",
  "implementation": {
    "fields": [
      {
        "key": "sides",
        "label": "Sides",
        "value": 6,
        "type": "number"
      },
      {
        "key": "n",
        "label": "Dice",
        "value": 2,
        "type": "number"
      }
    ],
    "input": false,
    "note": "",
    "live": false,
    "presentation": "metrics",
    "experience": {
      "automatic": false,
      "single": false,
      "inputMaxLength": 1000000,
      "inputMode": "text",
      "label": "Your text",
      "placeholder": "Type or paste your input…",
      "help": "Up to 1,000,000 characters. Review the settings before running.",
      "helpParts": [
        "Up to 1,000,000 characters.",
        "Review the settings before running."
      ],
      "action": null
    },
    "mode": "explicit",
    "interactive": false
  },
  "execution": "POST /api/v1/tools/dice-roller/run",
  "api": {
    "id": "dice-roller",
    "name": "Dice roller",
    "category": "calculators",
    "description": "Roll virtual dice and see each roll and the total.",
    "notes": "",
    "human_path": "/en/calculators/dice-roller/",
    "method": "POST",
    "endpoint": "/api/v1/tools/dice-roller/run",
    "schema_url": "/api/v1/tools/dice-roller",
    "input_schema": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "input": {
          "type": "string",
          "maxLength": 1000000,
          "default": "",
          "description": "Plain text input. File tools use files instead unless otherwise documented."
        },
        "options": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "sides": {
              "type": "number",
              "description": "Sides",
              "default": 6.0
            },
            "n": {
              "type": "number",
              "description": "Dice",
              "default": 2.0
            }
          }
        }
      }
    },
    "output_schema": {
      "type": "object",
      "required": [
        "tool",
        "result"
      ],
      "properties": {
        "tool": {
          "type": "string"
        },
        "result": {
          "type": "object",
          "required": [
            "text",
            "files"
          ],
          "properties": {
            "text": {
              "type": [
                "string",
                "null"
              ]
            },
            "data": {
              "description": "Parsed JSON when the textual result is JSON."
            },
            "name": {
              "type": "string"
            },
            "mime": {
              "type": "string"
            },
            "files": {
              "type": "array",
              "items": {
                "type": "object",
                "required": [
                  "name",
                  "mime",
                  "bytes",
                  "base64"
                ],
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "mime": {
                    "type": "string"
                  },
                  "bytes": {
                    "type": "integer"
                  },
                  "base64": {
                    "type": "string",
                    "contentEncoding": "base64"
                  }
                }
              }
            }
          }
        }
      }
    },
    "processing": "Server; same transformation code as browser tools",
    "limits": {
      "request_bytes": 8388608,
      "input_characters": 1000000,
      "files_bytes": 5242880,
      "max_files": 0,
      "timeout_seconds": 12
    }
  },
  "agent_processing": "Server; same transformation code as browser tools",
  "browser_agent": {
    "supported": true,
    "name": "run_current_tool",
    "discovery": "WebMCP on the human page in a supporting browser",
    "verification": "See audit/API-AUDIT.md; availability is not verification"
  }
}

Page guide

Roll virtual dice and see each roll and the total.

How to use Dice roller
  1. Enter the values you want to calculate and choose the relevant units or settings.
  2. Review the settings, then choose Run Dice roller.
  3. Review the result, then use Copy result or a download link when available.

How Dice roller works

This dice roller rolls from 1 to 100 dice, each with the same number of sides from 2 to 1,000, and shows every roll plus the total. Each die gives a whole number from 1 to the number of sides, drawn from your browser's cryptographic random number generator with a method that avoids bias, so every face has an equal chance. Press Run for each new roll. All dice in one roll share the same number of sides, so for a mix such as 1d20 plus 2d6, roll each group separately and add any modifier yourself.

Before you start

Set Sides to the die you need, such as 6 for a d6 or 20 for a d20, and Dice to how many you are rolling. Both must be whole numbers.

A worked example

With Sides set to 6 and Dice set to 2, one run returned rolls [1, 1] and a total of 2. With Sides 20 and Dice 1, another run returned a single roll of 8.

What to expect

Roll virtual dice and see each roll and the total. Choose the number of sides and dice. Each die produces a whole number from 1 to the selected number of sides.

Common questions

Is an online dice roller really random?

This one uses crypto.getRandomValues, the browser's cryptographically secure random source, and discards values that would favor some faces. In a test of 60,000 single d6 rolls, each face came up between 9,888 and 10,100 times, close to the expected 10,000. Rolls cannot be predicted or replayed.

What does 2d6 mean?

It is dice notation: the number before d is how many dice, and the number after d is how many sides each has. For 2d6, set Dice to 2 and Sides to 6. The total ranges from 2 to 12, and 7 is the most likely sum.

How do I roll with a modifier such as 1d20+5?

The tool does not read dice notation or add modifiers. Set Sides to 20 and Dice to 1, roll, then add 5 to the total yourself. For mixed dice, such as 1d8 plus 2d6, run each group separately and add the totals together.

Can I roll a d100 or unusual dice?

Yes. Any whole number of sides from 2 to 1,000 works, so a d100 gives 1 to 100 directly, and you can roll a d3, d7 or d30. One side, decimal values or more than 100 dice show an error instead of a roll.

What are the odds of rolling a specific number?

On one fair die, each face has a probability of 1 divided by the number of sides, so rolling a 20 on a d20 is 1 in 20, or 5%. With several dice, middle totals are more likely than extremes, which is why 7 is the most common result on 2d6.