Random Number Generator — Free Online Tool
Need a raffle winner, a dice roll, or lottery-style picks? Set your range and count, choose whether duplicates are allowed, and generate instantly.
Last updated: October 2026
What is the Random Number Generator?
Random numbers power everything from games and giveaways to sampling and simulations. This generator produces uniformly distributed integers: every number in your range has an equal chance each draw, whether you allow repeats or not.
Two modes cover the common cases. With duplicates behaves like rolling dice — the same number can come up again. Unique numbers behaves like drawing names from a hat — each result is removed from the pool, which is what you want for raffles, teams, or lottery picks. (For cryptography or security tokens, use the password generator instead — it uses a cryptographically secure source.)
True randomness is surprisingly useful: raffle draws, randomized clinical trials, A/B test assignments, lottery-style picks, and even password salts all depend on unbiased numbers. This generator uses your browser’s cryptographic random source, which is far less predictable than the basic random functions in spreadsheets.
Unique mode draws without replacement — like pulling names from a hat — so the same number can never appear twice. Sorted mode arranges results ascending, handy for lottery tickets. Just note the maximum count cannot exceed the size of the range in unique mode.
For giveaways, add transparency: screen-record the generation showing the range, count, and unique setting, then publish the video or screenshot with the winners. Skeptical audiences trust a visible process far more than ‘we used a random picker’ — and it takes thirty seconds.
How to use this calculator
- Enter the minimum and maximum of your range.
- Set how many numbers to generate.
- Toggle unique numbers and sort results as needed.
- Click Generate.
Formula
Worked example
Example: A school raffle with tickets 1–100, drawing 3 unique winners: set min 1, max 100, count 3, tick ‘unique’ — you might get 17, 42, 88. Unique mode guarantees no duplicate winners, which a plain dice-style draw cannot.
For a coin flip, use min 0, max 1, count 1: 0 = heads, 1 = tails.
Frequently asked questions
Is this truly random?
It uses your browser's pseudorandom generator — uniform and unpredictable enough for games, raffles, and sampling, but not for cryptography.
Why did I get a duplicate?
Duplicates are allowed by default (like dice rolls). Turn on “unique numbers” to prevent repeats.
Can I generate numbers for a lottery?
Yes — set min 1, max to your lottery's top number, count to the picks needed, and enable unique numbers.
What is the maximum count?
1,000 per generation. Unique count can't exceed the size of the range.
Is this random enough for a real raffle?
Yes for casual and most organizational raffles — it uses a cryptographically secure source. For regulated gambling or lotteries, use certified hardware systems required by law.
What does the seed mean? (There is no seed option.)
Exactly — there is none. Seeded generators replay the same sequence, which is useful for testing but terrible for fairness. This tool is unseeded by design.
Can I generate random decimals too?
This tool generates integers. For decimals, generate integers in a scaled range and divide — e.g. 1–1000 divided by 100 gives 0.01–10.00 in cent steps.