Random Number Generator
Generate random whole numbers or decimals between any minimum and maximum. Both ends of the range are included.
Optional settings
Your random numbers
Settings used
Free Online Random Number Generator
This random number generator picks one or many random numbers between any minimum and maximum you choose. Use it for whole numbers or decimals, switch off repeats to get a list of unique numbers, and leave out any numbers you do not want. Both ends of the range are included, and every allowed value has the same chance of being picked.
How to Use the Random Number Generator
- Enter a minimum and a maximum. The range is inclusive, so both values can be returned.
- Choose how many numbers you want. You can generate up to 1,000 numbers in one go.
- Pick the decimal places. Leave it at 0 for whole numbers, or choose 1 to 6 for decimals.
- Open Optional settings if you need them. You can stop numbers repeating, sort the results, or exclude specific whole numbers.
- Select Generate, then copy the results or generate again.
How the Numbers Are Generated
- Inclusive range: the minimum and maximum can both appear in your results.
- Decimals use a fixed grid: with 2 decimal places the possible values are 0.00, 0.01, 0.02 and so on. The generator picks one of these steps at random, then writes it out with exactly that many decimal places, so you never get stray digits beyond the precision you chose.
- Range trimmed inwards if needed: if your minimum or maximum has more decimal places than you selected, it is rounded inwards to the nearest value that fits, and the page tells you when this happens.
- Unique numbers: with duplicates switched off, numbers are picked without replacement from the list of possible values. You can only ask for as many unique numbers as there are possible values after any exclusions.
- Exclusions: type whole numbers separated by commas. Spaces and empty entries are ignored, and each excluded number must sit inside your range.
- Random source: the generator uses the Web Crypto random source built into your browser, with a method that avoids favouring some values over others. If your browser does not provide it, a weaker fallback is used and the results panel says so.
- No seed: results cannot be reproduced. If you need a repeatable sequence, use a seeded generator in your own software.
How Many Possible Values Are There?
The number of possible values depends on the range, the decimal places and any exclusions. Here are some examples.
| Setting | Range | Possible values |
|---|---|---|
| Whole numbers | 1 to 10 | 10 |
| Whole numbers, excluding 7 and 13 | 1 to 100 | 98 |
| 1 decimal place | -5 to 5 | 101 |
| 2 decimal places | 0 to 1 | 101 |
| 3 decimal places | 0 to 1 | 1,001 |
Common Uses
- Picking a number for a game, quiz or classroom activity
- Choosing between options by giving each one a number
- Selecting random row or item numbers for a sample
- Creating test data with whole numbers or decimals
- Drawing a number for an informal raffle or giveaway
When Not to Use It
This tool is for everyday use. Do not use it to create passwords, security keys or other secrets, and do not rely on it for official, regulated or gambling draws that need certified randomness. A random pick cannot improve your chances in any game of chance.
Frequently Asked Questions
How does the random number generator work?
It picks each number from the full list of values allowed by your minimum, maximum and decimal places, using the Web Crypto random source in your browser where it is available. Every allowed value has the same chance of being picked, and both the minimum and the maximum can be returned.
Are the minimum and maximum included?
Yes. The range is inclusive, so with a minimum of 1 and a maximum of 10 the results can include 1 and 10 as well as every whole number in between.
How do decimal places work?
The decimal places setting fixes the size of the steps between possible values. With 2 decimal places the possible values are 0.00, 0.01, 0.02 and so on, each equally likely. If your minimum or maximum has more decimal places than you selected, the range is trimmed inwards to the nearest value that fits, and the page tells you when this happens.
How do I generate random numbers without repeats?
Open Optional settings and set Allow duplicates to No. The generator then picks from the list of possible values without replacement. You can only ask for as many unique numbers as there are possible values after any exclusions, and the page tells you if your request is too large.
How do I exclude numbers from the results?
In Optional settings, type whole numbers separated by commas, for example 7, 13, 42. Spaces and empty entries are ignored. Each excluded number must fall inside your range, and exclusions are available when decimal places is set to 0.
Is this random number generator truly random?
The numbers come from the random source built into your browser, which is designed to be unpredictable and is suitable for everyday uses such as games, sampling and choosing between options. Like any software generator it is not a physical random process. If the Web Crypto source is unavailable, a weaker fallback is used and the page says so.
Can I use it to choose lottery numbers or create passwords?
You can use it to pick numbers for fun, but it does not improve your chances, and no generator can. It must not be used for passwords, security keys or other secrets, or for official or regulated draws that need certified randomness.
How many numbers can I generate at once?
You can generate up to 1,000 numbers per click. The minimum and maximum can each have up to 15 digits before the decimal point, and you can choose up to 6 decimal places.