Random Number Generator
Pick a range and get genuinely random numbers — one at a time or up to a thousand, with or without duplicates, whole numbers or decimals. Every draw uses your browser's cryptographic randomness: free, private, and fair every time.
Runs in your browser — your files and text never leave this device
What is a random number generator?
A random number generator picks numbers within a range you choose — one at a time or up to a thousand at once, with or without repeats, whole numbers or decimals. This free online random number generator uses your browser's cryptographic randomness, so every number is genuinely unpredictable, not the pseudo-random output of a simple formula.
Related tools
How to use the Random Number Generator
- Set the smallest and largest numbers allowed.
- Choose how many numbers you need, and whether decimals or no-duplicates apply.
- Press Generate — copy the results with one click.
Fair draws, honest randomness
Random numbers run more of daily life than we notice: the order students get called on, the winner of an Instagram giveaway, the sample a researcher pulls from a list, the dice a board game lost. Doing it by hand invites bias — people unconsciously favour the middle of a range and avoid repeats that are actually normal. This generator uses the cryptographic random source built into your browser, the same one websites trust for security codes, so every value in your range is equally likely, every time.
Two options cover the common special cases. "No duplicates" turns the draw into a lottery-style pick, where each number can appear only once — ideal for raffles and random orders. Decimal places switch the tool from whole numbers to measurements and simulations. Need names instead of numbers? Our List Randomizer shuffles a list of anything.
Visitors often continue with List Randomizer, which shuffles a list into a random order, or Password Generator, which creates strong random passwords with custom rules.
How the randomness works
The numbers come from your browser's cryptographic random source — the same system websites trust for security codes and tokens — not from a predictable formula. Each draw is independent: the result of one pick has no effect on the next, and every value in your range is equally likely every time. That independence is what makes the results fair, and it is also what makes them look strange to human eyes: real randomness produces repeats, clusters and runs, because avoiding them would itself be a pattern.
People are poor random-number generators. Asked to pick a number between 1 and 100, most of us favour the middle of the range, avoid round numbers and shy away from repeats — all unconscious biases that skew a draw. A machine has no favourites. Whether the stakes are a giveaway prize or a classroom pick, letting the generator choose removes both the bias and the suspicion of it.
Ranges people actually use
A random number generator 1-100 is the classic: guessing games, giveaways with a hundred entries, percentage rolls, and any draw where a hundred options feels right. A random number generator 1-10 suits quick picks — choosing between ten options, a top-ten list, a small group. A random number generator 1-5 covers the smallest draws: five team members, five raffle tickets, five choices on a menu. And 1-6 is a die, for the board game that lost its own. Set any minimum and maximum you like; the tool does not care whether the range starts at 1, 0 or 437.
How many numbers you generate matters as much as the range. One number settles a single pick. A batch — up to a thousand at a time — fills a sample, a draw list or a statistics exercise, and the Sort the results option arranges them in order so duplicates and gaps are easy to spot. Copy the results with one click and they are ready to paste wherever the draw is being recorded.
No duplicates and decimals
Tick No duplicates and the draw becomes a lottery: each number can appear only once, like balls drawn from a drum without putting them back. That is the right mode for raffles, for picking several winners from one entry list, and for putting people into a random order — generate as many unique numbers as there are people and the order is set. The count cannot exceed the size of the range, because there are no more unique numbers to draw; ask for ten unique numbers from 1-5 and the tool will tell you it cannot be done.
Decimal places switch the tool from counting to measuring. A simulation that needs values between 0 and 1, a set of random prices, a sample of temperatures — up to six decimal places are available, and the same fairness rules apply: every value in the range is equally likely. Decimals and no-duplicates can combine, though with decimals the chance of a repeat is already vanishingly small.
Running a fair giveaway
A quick recipe for a draw nobody can dispute: number the entries, set the range to match, tick No duplicates if there is more than one prize, generate, and share a screenshot of the result. Because the numbers are generated on your device and nothing is recorded anywhere, the draw is as transparent as the screen you show — and because the generator has no memory, running it again gives a fresh, independent result.
Unique numbers, decimals and fair draws
Turn on 'No duplicates' when every number must be different — a random number generator with no repeats draws each number only once, like drawing lottery balls without putting them back. That is the mode for raffles, sampling and any draw where a duplicate would be unfair. You can generate up to 1,000 numbers in one batch, and the count cannot exceed the size of your range when repeats are off.
Need fractions? Generate random decimal numbers online here too — set the range and the number of decimal places, and the tool returns decimals with the same cryptographic randomness. That is what makes this a secure random number generator online: it uses crypto.getRandomValues, the browser's cryptographic source, instead of Math.random, whose output can be predicted. Use it as a random number picker for giveaways, classroom cold-calling or any draw that has to be fair — and because it runs in your browser, nobody else sees your numbers.
Frequently asked questions
Are these numbers truly random?
They come from your browser's cryptographic random source (the same system used for security tokens), not from a predictable formula. Every draw is independent and unbiased across the whole range.
Can I generate numbers with no repeats?
Yes — tick "No duplicates" and each number in the batch will be unique, like drawing lottery balls without putting them back. The count cannot exceed the size of the range.
What is this used for?
Giveaways and raffles, picking lottery numbers, classroom cold-calling, sampling and statistics practice, game nights, and splitting people into random groups or order.
Is anything sent to a server?
No. The numbers are generated in your browser tab and never leave your device.
How many numbers can I generate at once?
Up to 1,000 in one batch. Set the range and the count, and the tool generates them all at once — unique or with repeats, whole numbers or decimals. With 'No duplicates' on, the count cannot exceed the size of your range.
Can I generate random decimal numbers?
Yes. Switch to decimals, choose how many decimal places you want (up to six), and set the range. The tool generates decimal numbers with the same cryptographic randomness as whole numbers, so they are just as unpredictable.
What makes these numbers more random than Math.random?
This tool uses your browser's cryptographic randomness (crypto.getRandomValues), which draws from the operating system's entropy source and is designed to be unpredictable. Math.random is a pseudo-random formula: fast, but its output can be predicted if you know its state. For giveaways, draws and sampling, the cryptographic source is the fairer choice.