Everyday Calculators
Random Number Generator
Updated
Inclusive integer range
Both fields begin empty. Use ASCII digits only; input is never trimmed, swapped, clamped, or partially parsed.
Accepted bounds: 0 through 4294967295. Both endpoints are inclusive, and equal bounds are valid.
Enter valid ordered bounds to preview possible outcomes.
Quick ranges
Presets fill the fields only. Press Generate Number to draw one number.
Enter an inclusive nonnegative range, then generate one integer.
Browser-provided words and unbiased mapping
Each user-triggered selection requests one unsigned 32-bit word from the browser. For a requested range size, the tool accepts words only from the largest part of the 4294967296-value word domain that divides evenly by that size. The accepted word is then reduced to an offset and added to the minimum.
At most 128 words are requested for one selection. A provider error or exhausted attempt limit returns a textual failure with no stale result and no fallback source. This design is intended to avoid bounded-range mapping bias; a visible result does not prove statistical fairness.
Worked examples
Equal bounds: Minimum 7 and maximum 7 produce 7. There is only one possible value, so no random word is requested.
Inclusive range: Minimum 10 and maximum 12 create three possible outputs: 10, 11, or 12. The actual result cannot be predicted in advance, and no particular outcome is guaranteed.
Assumptions, privacy, and limitations
Generation occurs locally during the button action. The route sends no calculation request, stores no history, and does not place entered bounds in a URL. Repeated clicks request fresh browser-provided values and replace the previous result.
Use this only for casual, non-security-sensitive choices. It is not intended for passwords, credentials, encryption keys, access tokens, security decisions, gambling, regulated drawings, legal or compliance selection, or audited selection. It provides no certification, reproducibility, or third-party verification.
Numbers versus list order
This route generates one integer. Use the List Randomizer to reorder complete text entries while preserving duplicates.
Pick one casual-use integer from an inclusive range, preview possible outcomes, or choose coin-style and die-style presets.
Quick answers
What this calculator answers
- Result: Generates exactly one nonnegative integer from the inclusive minimum and maximum you enter.
- Mapping: Browser-provided unsigned 32-bit random words are mapped with rejection sampling designed to avoid bounded-range bias.
- Boundary: This casual-use tool is not intended for passwords, tokens, gambling, regulated drawings, legal selection, or audited decisions.
How to Use This Tool
Use these steps to enter the right inputs and interpret the result correctly.
Enter a complete nonnegative integer from 0 through 4294967295 as the minimum.
Enter a maximum from the minimum through 4294967295.
Optionally choose a quick range, coin-style 0–1 choice, or six-value die roll to fill bounds without generating. Review the possible outcome count.
Choose Generate Number to make one inclusive-range selection.
Copy only the generated integer, or Reset to clear the route.
Accuracy, authors and source references (expand details)
Transparency note
Accuracy and limitations
Calzivo tools are built for practical estimates, conversions, and checks. Some tools use standard formulas or simplified assumptions, and results can be affected by input accuracy, rounding, units, local rules, or changing official requirements.
Results depend on the values you enter and any simplified assumptions used by the tool. Verify important results before making decisions or submitting official information.
Reference check
Sources and references
These references provide background context for the topic. They do not replace official advice or documents for personal decisions.
- Web Cryptography API: getRandomValues
World Wide Web Consortium
