Random Number Generator
Draw random integers from any range — one number or a batch, with no repeats and sorting — using the browser's cryptographic RNG, not Math.random.
About Random Number Generator
Pick a minimum and a maximum and draw one value or up to a thousand at a time. Switch on 'no repeats' and every number in the sample is distinct, drawn without replacement from the range; switch on sorting and the result comes back in ascending order, which is what a lottery line or a raffle ticket list needs.
The draw uses crypto.getRandomValues with rejection sampling rather than Math.random(). Two reasons. Math.random is not required to be unpredictable, so a value someone else might be betting on should not come from it. And `min + Math.random() * (max - min)` rounded, or any `% range`, is not uniform: it quietly favours some outcomes. Rejection sampling discards the biased part of the space and returns a genuinely flat distribution. Dice, coin flips and lottery presets are on the same page for the same reason.
Uniqueness is bounded by the range — asking for 50 distinct numbers out of 1 to 20 is refused rather than silently looping forever. Even with a CSPRNG, treat the output as fair random draws, not as a secret: for a key or token use the password generator instead.
How to use
- 1Open the Random Number Generator tool page.
- 2Enter or paste your input into the provided fields.
- 3The tool processes your input instantly in your browser.
- 4Copy or download the result using the buttons provided.
Privacy & limitations
- Processing happens locally in your browser — nothing is uploaded.
- Works on modern desktop and mobile browsers.
- Very large inputs may take a moment; the interface will show progress.
Frequently asked questions
Related tools
Page Heading Analyzer
Extracts heading levels and flags skipped heading levels.
Search Snippet Previewer
Previews a page title and description in a search-result-style layout.
Website Link Inventory
Creates a searchable inventory from a supplied collection of page links.
Error Rate Calculator
Calculates error percentages from request totals and failure counts.
Log Timestamp Normalizer
Standardizes timestamps in exported logs using supplied time-zone information.
Backup Retention Planner
Creates a retention schedule based on backup frequency and storage constraints.
Cache Hit Ratio Calculator
Calculates cache hit ratios from supplied hit and miss counts.
Worker Throughput Calculator
Estimates completed jobs per minute from worker measurements.