Random Number Generator
Pick a random number between any two limits, or up to 1,000 at once. Choose whole numbers or decimals, allow or forbid repeats, and sort the results — all generated privately in your browser.
Up to 1,000 at once.
Turn off to draw each value at most once, like pulling names from a hat.
Drawn with your browser's cryptographic random generator. Nothing is sent anywhere.
How to use this generator
- Set the lower and upper limits, or tap one of the common ranges.
- Choose how many numbers you want and whether they should be whole numbers or decimals.
- Turn off repeats if every number must be different.
- Press Generate. Press it again for a new draw, and use Copy to paste the results elsewhere.
How the numbers are chosen
Each draw takes 53 random bits from the Web Crypto API and turns them into a fraction between 0 and 1. That fraction picks one of the possible values in your range, with every value given exactly the same chance.
When repeats are off, the generator shuffles the whole range with the Fisher–Yates method and takes the first few values. It only ever touches the positions it needs, so drawing 1,000 unique numbers from a range of a trillion is instant.
Ideas
- Roll a die — 1 to 6, one number. For two dice, ask for two with repeats on.
- Pick raffle winners — 1 to the number of tickets, three numbers, repeats off.
- Choose lottery numbers — 1 to 49, six numbers, repeats off, smallest first.
- Random sample — row numbers from a spreadsheet, repeats off.
Frequently asked questions
They come from your browser's cryptographic random number generator (the Web Crypto API), the same source used to create encryption keys. It is seeded from unpredictable events in your device's hardware and operating system, so the results cannot be predicted in practice.
The numbers are generated on your device and never sent anywhere.
Yes. With limits of 1 and 10, both 1 and 10 can come up, and every whole number in between is equally likely. If you type the limits the wrong way round, they are swapped automatically.
Each value can then be drawn at most once, like pulling numbered tickets out of a hat without putting them back. It is the setting to use for lottery-style draws, raffle winners or picking a random order.
You cannot ask for more distinct numbers than the range contains — 1 to 10 has only ten.
Choose Decimals and the number of decimal places. The range is split into equal steps of that size — 0.01 for two places — and one step is chosen at random, so every value you could see is equally likely, including both limits.
It is fine for informal draws, classroom picks, games and sampling. For a regulated lottery or prize draw, check the rules that apply to you — some require a certified or witnessed drawing method.