Generate one or more integers from an inclusive range with browser cryptography, optional uniqueness, and unbiased rejection sampling.
Built for Misc1 executable calculation mode1 guided projectPrivate in your browser
Use this result well
A quick decision brief for this specific tool
Inputs that matter
Safe whole-number inclusive bounds from −1,000,000 to 1,000,000, a whole count from 1 to 1,000, and whether duplicates are allowed
Output to expect
The generated integer sequence plus its count, inclusive range, sum, and arithmetic average
How it works
Browser Web Cryptography uint32 draws mapped with rejection sampling; unique mode performs a partial cryptographic Fisher–Yates shuffle
Impossible unique requests and unavailable browser cryptography produce errors rather than adjusted inputs or Math.random() fallback.
Suitable for ordinary randomized choices, not audited lotteries, regulated gaming, cryptographic key generation, or reproducible scientific sampling.
Choose your path
Built around the job you need to finish
Generate ordinary-use inclusive integers with or without replacement using browser cryptography and rejection sampling, while rejecting impossible or unsupported requests.
Workshop facilitator
Assign numbered prompts with an explicit repeat rule.
Enter inclusive whole bounds/count and choose whether duplicates are allowed.
Gets only values inside the range and can explain whether sampling was with or without replacement.
Teacher demonstrating sampling
Show unique draws from a small finite population.
Choose Unique Only and request no more values than the range contains.
An impossible unique count produces a clear error rather than duplicates or a reduced count.
Risk-aware casual user
Know whether the tool is appropriate for a consequential draw.
Review the Web Crypto/rejection method and stated scope before generating.
Uses it for ordinary choices, not audited lotteries, regulated gaming, keys, or reproducible scientific sampling.
Was this tool helpful?
Projects using Random Number Generator
This tool is part of these guided projects. Each project provides step-by-step instructions with checklists and all the tools you need in one place.
Rejects 32-bit draws above the largest multiple of the inclusive range size, then maps an accepted value into the range.
result = minimum + (accepted uint32 mod range size)
Step-by-Step Process
Validates safe whole integers, inclusive range order, the 1–1,000 count limit, and whether a unique request can fit within the selected range before drawing values.
Validation & Verification
The tool reports count, range, sum, and average for the actual draw. It rejects unsupported browser cryptography instead of silently switching to a weaker random source.
Updated: August 2026
Example Scenarios
A facilitator assigns numbered discussion prompts to participants, allowing repeats only when the activity calls for them.
A teacher draws unique integers from a small range to demonstrate sampling without replacement, while explaining that a single draw does not prove uniformity.
Friends choose one integer from an agreed inclusive range for a low-stakes activity, not a wager, lottery, or regulated selection.
FAQ
The tool draws 32-bit values from the browser cryptography API and uses rejection sampling to avoid modulo bias across the requested range. It is not an audited lottery, gaming, scientific-sampling, or regulated draw system.
The generator is available without account setup on this page. A single request is limited to 1,000 integers so invalid or excessive requests are rejected clearly.
The controls adapt to narrow screens. Generation requires a current browser context that exposes the Web Cryptography API; if secure random values are unavailable, the tool reports an error rather than falling back to Math.random().
It generates inclusive integers, allows or disallows duplicates, and reports count, range, sum, and average. It does not generate decimal, normally distributed, seeded, or reproducible sequences.
The range and count are processed by the page in your browser. Do not treat this ordinary-use utility as an audited draw system or enter sensitive information into labels or surrounding site features.
About Random Number Generator
Generate 1–1,000 integers from an inclusive −1,000,000 to 1,000,000 range. Choose whether repeats are allowed; impossible unique requests and non-integers are rejected instead of silently changed.