Generate random numbers in any range. This free random number generator lets you set the min, max and quantity, allow or forbid duplicates, and sort the results — ideal for raffles, games and sampling.
Set a range and how many numbers you want. Choose whether duplicates are allowed, and optionally sort the output. Whole numbers, inclusive of both ends.
A free random number generator for raffles, draws, picking winners, games, sampling and decisions. Uses your device’s random number generator.
How the Random Number Generator Works
This tool picks whole numbers at random from a range you set, then lets you choose how many to draw, whether repeats are allowed, and whether the output is sorted. It’s built for quick, fair picks — raffles, sampling, and games — not for statistical simulation.
Formula: For each draw, value = floor(random() × (Maximum − Minimum + 1)) + Minimum, which produces a whole number inclusive of both the Minimum and Maximum. This is repeated for the requested count. If “Unique only” is selected, each drawn value is removed from the pool so it cannot repeat, up to a maximum of (Maximum − Minimum + 1) possible values. If “Sort results” is checked, the final list is reordered low to high after generation — sorting does not change which numbers were picked.
- Minimum — the lowest whole number that can be generated (inclusive)
- Maximum — the highest whole number that can be generated (inclusive)
- How many numbers — the count of values to generate in one go
- Allow duplicates / Unique only — whether the same number can be drawn more than once
- Sort results (low → high) — whether the output list is ordered ascending or left in draw order
Example Scenarios
| Minimum | Maximum | How Many | Duplicates? | Total Possible Values |
|---|---|---|---|---|
| 1 | 6 | 1 | Allowed | 6 |
| 1 | 100 | 5 | Unique only | 100 |
| 1 | 49 | 6 | Unique only | 49 |
| 0 | 1 | 10 | Allowed | 2 |
| -10 | 10 | 3 | Allowed | 21 |
| 1 | 1000 | 1 | Allowed | 1000 |
Random Number Generator FAQ
Can this generate numbers without any repeats?
Yes. Select “Unique only” instead of “Allow duplicates” and each generated number is removed from the pool so it cannot be drawn again in the same batch, similar to drawing lottery balls without replacement.What’s the most unique numbers I can generate from a given range?
The maximum is Maximum minus Minimum plus one, since that’s how many distinct whole numbers exist in an inclusive range. Asking for more unique numbers than that isn’t possible.Can the generator produce negative numbers?
Yes, if you set a Minimum below zero (for example, -10), the tool will include negative whole numbers in the range it draws from, down to and including that minimum.Are the Minimum and Maximum values themselves possible results?
Yes, both endpoints are inclusive. If you set Minimum to 1 and Maximum to 6, both 1 and 6 can appear in the results, just like any other whole number in between.Does sorting change which numbers get picked?
No. Sorting only reorders the already-generated list from low to high for easier reading — it happens after the random draw and has no effect on which values were selected.Is this suitable for picking a raffle or contest winner?
Yes. Set Minimum and Maximum to match your ticket or entry numbers, set “How many numbers” to the number of winners, and choose “Unique only” so no entry can be picked twice.Related Calculators
If you’re using random draws for games or decisions, the dice roller is a quicker option when you just need standard dice results. For working out the odds behind a random draw, try the probability calculator, and once you’ve generated a batch of numbers, the standard deviation calculator can help you check how spread out your sample turned out to be.