Random Number Generator
Generate one or many random integers in any range using your browser's cryptographically secure randomness. Optional unique values and no modulo bias.
About this tool
Generate random whole numbers within a range you choose. You can produce a single number or a list, and optionally require all values to be unique — handy for draws, raffles and sampling.
Randomness comes from the Web Crypto API, and the generator uses rejection sampling to avoid the subtle bias that simple modulo approaches introduce.
Examples
- Pick a number between 1 and 100
- Draw 6 unique numbers between 1 and 49 for a lottery-style pick
- Generate 10 dice rolls between 1 and 6
Frequently asked questions
Is this random number generator secure?
It uses the browser's cryptographically secure random source (Web Crypto). That is far stronger than Math.random and suitable for most everyday and security-adjacent needs.
What does "unique values" do?
When enabled, the generator never repeats a number in the same batch. The count is capped at the size of the range.
Can it generate decimals?
This tool produces whole numbers (integers). For ranges, set the minimum and maximum you need.
More tools
Password Generator
Create strong, random passwords with adjustable length and character sets. Uses cryptographically secure randomness and shows estimated strength. Nothing is sent anywhere.
GeneratorsQR Code Generator
Generate QR codes for URLs, text, Wi-Fi and more directly in your browser. Adjust size and error correction, then download a PNG. No tracking, no uploads.
GeneratorsPercentage Calculator
Free percentage calculator: find what percent of a number, what a value is as a percentage, and percentage increase or decrease. Works instantly in your browser.
Calculators