Pick a range, say how many numbers you want, and choose whether repeats are allowed. Both ends of the range are included, and the draw is reproducible from the seed shown on the page — so a shared link shows the other person exactly the numbers you saw.
Key terms
- Range — the lowest and highest values that can be drawn. Both are possible outcomes.
- Seed — the starting value the generator works from. The same seed always produces the same sequence.
- Without repeats — every drawn number is different, like pulling tickets from a hat rather than rolling a die.
Why there is a seed on this page
Every calculator on this site has a pure function behind it that an automated test suite drives with fixed inputs and fixed expected answers. A generator that returned something different on every call could not be tested that way at all — there would be nothing to assert.
So the randomness comes from a seed you can see. The page fills it with a fresh value each time it loads, and changing it gives you a new draw. The side effect is a genuinely useful one: because the numbers follow from the seed, a share link reproduces them exactly. A generator that re-rolled on load could never do that.
Do not use these for anything security-related
A seeded generator is reproducible by design, which is precisely what security does not want. These numbers are fine for prize draws, sampling, teaching, games and picking a winner. They are not suitable for passwords, keys, tokens, or anything where someone predicting the next value would matter. For that you need a cryptographically secure source, which is a different tool entirely.
Both ends of the range are included
Asking for 1 to 6 must be able to give you a 1 and a 6. It sounds obvious, and it is the most common bug in hand-rolled generators: the usual shortcut returns values from 0 up to one below the maximum, which is wrong at both ends. That is why so many home-made dice roll a zero and never roll a six.
Some draws are impossible
You cannot draw six different numbers from a range that only contains four. Asked to do it, this calculator says so and suggests widening the range, asking for fewer, or allowing repeats — rather than looping forever or quietly handing back duplicates in a mode that promised none.
How to use this calculator
- Set the range. Entered backwards, it is read the way you obviously meant.
- Choose how many numbers you want, up to 100.
- Switch to “All different” for a prize draw or a sample; leave it on repeats for dice-style rolls.
- Change the seed for a new draw, or share the link to let someone else verify the one you got.
Frequently asked questions
Are these numbers really random?
They are pseudorandom: well distributed and unpredictable in practice for everyday use, but generated by a formula from the seed rather than from a physical source. For a raffle or a sample that is exactly what you want, and it is what makes the result checkable afterwards.
Why do I get the same numbers again?
Because the seed has not changed. Change the seed, or reload the page, and you get a fresh draw. This is deliberate — it is what lets you share a result.
How do I pick lottery numbers?
Set the range to match your game, set the count to how many balls are drawn, and switch to “All different” — lottery draws never repeat a number.
Can I use this to pick a winner fairly?
Yes, and the seed makes it more defensible than most tools: note the seed and the range and anyone can reproduce the draw and confirm you did not re-roll until you liked the answer.
What is the maximum range?
The ends can be any whole numbers, positive or negative. The count is capped at 100 numbers per draw.