{
  "slug": "random-number",
  "title": "Random Number Generator",
  "heading": "Random Number Generator",
  "category": "math",
  "url": "https://www.revenuelab.fyi/toolbox/random-number",
  "summary": "Generate a random integer between two bounds.",
  "description": "Pick a random whole number between min and max, inclusive. Re-run the inputs to roll again.",
  "formula": null,
  "dateModified": "2026-10-03",
  "run_url": "https://www.revenuelab.fyi/api/public/calc?tool=random-number",
  "inputs": [
    {
      "id": "min",
      "label": "Minimum",
      "kind": "number",
      "hint": null,
      "default": 1,
      "unit": null,
      "min": null,
      "max": null
    },
    {
      "id": "max",
      "label": "Maximum",
      "kind": "number",
      "hint": null,
      "default": 100,
      "unit": null,
      "min": null,
      "max": null
    },
    {
      "id": "seed",
      "label": "Re-roll (any number to re-randomize)",
      "kind": "number",
      "hint": null,
      "default": 0,
      "unit": null,
      "min": null,
      "max": null
    }
  ],
  "outputs": [
    {
      "id": "value",
      "label": "Random number",
      "format": "number",
      "hint": null,
      "primary": true
    }
  ],
  "worked_example": {
    "inputs": [
      "Minimum: 1",
      "Maximum: 100",
      "Re-roll (any number to re-randomize): 0"
    ],
    "outputs": [
      "Random number: 14"
    ]
  },
  "how_to": {
    "title": "How to use this",
    "steps": [
      "Enter minimum.",
      "Enter maximum.",
      "Enter re-roll (any number to re-randomize).",
      "Read your random number 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": {
        "min": 1,
        "max": 60,
        "seed": 0
      }
    },
    {
      "name": "Typical",
      "description": "Defaults — the most common real-world setup.",
      "values": {
        "min": 1,
        "max": 100,
        "seed": 0
      }
    },
    {
      "name": "Ambitious",
      "description": "Higher-end numbers — what if things really pop?",
      "values": {
        "min": 2,
        "max": 160,
        "seed": 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 random number generator work?",
      "a": "Pick a random whole number between min and max, inclusive. Re-run the inputs to roll again."
    },
    {
      "q": "What do I need to enter?",
      "a": "3 values: minimum, maximum, 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 random number 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/dice-roller"
  ],
  "license": "CC-BY-4.0",
  "citation": "RevenueLab — Random Number Generator (https://www.revenuelab.fyi/toolbox/random-number)"
}