Generators Random number generator
Generate random numbers in any range using cryptographic randomness, with options for no repeats and sorted output, for draws, sampling and testing.
Ready. Runs locally on your device.

Your files stay on your device. The tool works directly in your browser, using your device to process your files. Nothing is sent to our servers, and we never receive, store, or see your files or figures.
Share result
Cite
Cite this page
Reembun. (2026, July 27). Random number generator. https://reembun.com/random-number-generator
How to use it
Set the range
Lowest number and highest number. Both ends are included in the draw.
Say how many you need
How many draws at once. No repeats gives you a draw without replacement, which is what a raffle or a team split needs.
Tidy the output
Sort ascending puts the list in order when the draw order does not matter.
Copy the numbers
Every value comes from your browser's cryptographic random source, not from a seeded shuffle, and none of them leaves the tab.
How the numbers are drawn
Every value comes from the cryptographically secure random number source built into your browser and seeded by your operating system.
Squeezing a raw random value into your chosen range is where most implementations quietly go wrong. The obvious approach produces a lopsided distribution whenever the range does not divide the raw range evenly, so some outcomes become slightly more likely than others.
This generator avoids that. Any draw that would fall in the uneven tail is thrown away and taken again. The result is exactly uniform, at a cost of occasionally drawing twice.
With and without replacement
With replacement (the default) means every draw is independent and duplicates are possible. Ask for 6 numbers from 1-49 and you might get two 23s. This is the correct model for dice, coin flips and repeated independent trials.
Without replacement (“no repeats”) means each value can appear once, like drawing balls from a bag and not putting them back. This is the correct model for lottery draws, raffles and picking a sample of distinct items.
The distinction matters more than it seems. The chance of at least one duplicate when drawing 6 numbers from 1-49 with replacement is about 30%, far higher than intuition suggests, and the same birthday-paradox effect that surprises people about shared birthdays in a room of 23.
What it is used for
- Draws and raffles. Assign each entrant a number, then draw without repeats.
- Random sampling. Selecting rows for a quality audit or survey.
- Simulation and testing. Generating test data or seeding scenarios.
- Games. Dice, spinners and card positions. Set the range to 1-6, 1-20 or 1-52.
- Assignment. Splitting a group into teams, or deciding an order fairly.
The limits of a private generator
Everything here happens in your browser, which is exactly what makes it private, and exactly what makes it unauditable. Nobody, including us, can see the numbers. Equally, nobody can independently confirm you did not press regenerate until you liked the answer.
For a draw with real stakes, that matters. Regulated lotteries use hardware entropy sources, sealed procedures and independent observers, and the point is not better randomness. It is demonstrable randomness. If your draw needs to be defensible, run it publicly or use a service that publishes a verifiable seed.
On “true” randomness
Your operating system’s entropy pool draws on genuinely unpredictable physical sources: interrupt timing, hardware random number instructions on modern CPUs, and other jitter. Whether that is philosophically “true” randomness is a question for physicists. For every practical purpose, cryptographic and otherwise, it is unpredictable to anyone who does not already have control of your machine.
Common questions
Is this random enough for a prize draw?
The randomness itself is cryptographic quality, the same source used for encryption keys, and the sampling is provably unbiased. What it cannot give you is auditability. Because everything happens privately in your browser, there is no record a third party could verify. For a regulated draw you need a witnessed or logged process, not just a good generator.
What makes this different from an ordinary random number generator?
The everyday random function most sites use is fast but not secure, and its future output can be predicted from a modest number of past values. This tool draws on the cryptographic randomness built into your browser and seeded from your operating system's entropy pool. For a game the difference is irrelevant; for anything where someone benefits from predicting the result, it is the whole ballgame.
How does the "no repeats" option work?
For ranges up to 10,000 values it builds the full list, shuffles it, and takes as many as you asked for. For larger ranges it draws numbers and discards duplicates. Both give a uniform sample without replacement; the first is just faster when the range is small.
Can I use this to pick lottery numbers?
You can, and the numbers are genuinely random. It will not improve your odds, since every combination is equally likely in a fair draw, whatever process picks it. The only practical argument for random selection is that it avoids popular patterns like birthdays, so if you did win you would be less likely to share the prize.
Last reviewed
