Pick a range, pick how many numbers you want, and get them instantly — with a no-repeats option for draws and raffles. Generated in your browser using cryptographic randomness.
Result
—
Numbers drawn—
Pool size—
Sum—
Average—
Embed this calculator on your site — free
Advertisement
Ad slot A
How the numbers are generated
This generator uses crypto.getRandomValues(), the browser's cryptographically secure random source, rather than the ordinary Math.random(). That matters when the outcome has to be defensible — a prize draw, a random audit sample, a tiebreaker — because ordinary pseudo-random generators are seeded predictably and can, in principle, be reproduced.
Everything happens inside your browser. No numbers, ranges or results are sent to a server, logged, or stored anywhere, so the draw is private by construction.
Whole numbers vs decimals
Whole-number mode includes both endpoints: a 1 to 100 range can return 1 and can return 100, giving exactly 100 possible outcomes each equally likely. Decimal mode draws continuously across the range and then rounds to the number of places you choose.
The no-repeats option
With repeats allowed, every draw is independent — the same number can come up twice, which is what you want for dice, coin flips and simulations. With no repeats switched on, each number is removed from the pool once drawn, which is what you want for raffles, seating orders, team picking and lottery-style draws. You cannot draw more numbers than the pool contains, so the count is capped automatically.
Prize draws and giveaways — number your entrants and draw with repeats switched off. Lottery-style picks — six numbers from 1 to 49, no repeats. Random sampling — pick which rows of a spreadsheet to audit. Classroom and team picking — assign everyone a number and draw an order. Games — a quick substitute for dice or a spinner, though the dice roller is purpose-built for that.
Fairness and bias
A naive generator that takes a random value and applies a modulo to squeeze it into a range introduces a small bias toward the lower numbers, because the range rarely divides evenly into the source. This generator draws from a 32-bit source and scales rather than folding, keeping every outcome within a rounding error of equally likely — a difference too small to notice in a raffle but real enough to matter in simulation work.
Need a random string rather than a number? The password generator uses the same randomness source for characters.
Advertisement
Ad slot B
Frequently asked questions
Is this random number generator truly random?
It uses your browser's cryptographically secure random source, which is seeded from genuine system entropy. That is far stronger than a standard pseudo-random function and is suitable for prize draws, sampling and tiebreakers. It is not a hardware quantum source, but nothing about the sequence is predictable in practice.
How do I pick lottery numbers?
Set the minimum to 1, the maximum to the highest ball in your game, set the count to how many numbers you need, and tick 'No repeats' — lottery draws never repeat a ball within one draw.
Can I generate negative numbers?
Yes. Enter a negative minimum, such as −50 to 50. The range simply has to have the minimum below the maximum; the generator handles it either way.
Does the range include the minimum and maximum?
Yes, in whole-number mode both endpoints are possible and equally likely. A range of 1 to 6 gives exactly six outcomes, exactly like a die.
Are my numbers sent anywhere?
No. The whole thing runs in your browser. Nothing is transmitted, logged or saved, so refreshing the page discards the draw entirely.