# Random Number Generator Generate cryptographically strong random numbers over any range — choose the quantity, number of decimals, whether values must be unique, and whether the results come back sorted. Everything runs locally in your browser. ### How it works Numbers are drawn from `crypto.getRandomValues`, the browser's cryptographically secure random source, rather than `Math.random`. To keep every value in your range equally likely, the tool uses rejection sampling — it discards raw draws that would skew the distribution — so a 1–6 range is a fair die and a 1–100 range has no bias toward low numbers. Unique mode draws without replacement; decimals scale the integer draw. Nothing is uploaded. ## Related tools - [Random Picker](random-picker.html) — Fair Winner & Raffle Draw - [Random Quote Generator](random-quote-generator.html) — Offline Inspiring Quotes - [Dice Roller & Coin Flip Simulator (Fair Random)](dice-coin.html) --- *Source: [ocxly.com/random-number-generator.html](https://ocxly.com/random-number-generator.html) — OCXLY, free 100% client-side privacy-first tools. Free random number generator using secure browser randomness — set any range, count, decimals, uniqueness and sorting, entirely in your browser.*