Use this free random number generator to pick whole numbers or decimals between any minimum and maximum. Generate one number or a list of up to 50, choose unique results, and sort the output. Everything runs in your browser, so nothing you enter is sent to our servers.
A random number is one that is not chosen by a pattern. Use one for games, giveaways, classroom picks, sampling, or any time you need a fair, unbiased choice.
How to use the random number generator
- Choose the number type: whole numbers, or decimals with the number of decimal places you pick.
- Set the range: enter the smallest and largest value you want to be possible.
- Choose how many: generate 1, 5, 10, or 50 numbers.
- Options: turn on unique numbers to avoid repeats, or sort the list from smallest to largest.
- Copy: copy the results with one click.
Common uses
| Use | Range | Settings |
|---|---|---|
| Dice roll | 1 to 6 | Whole numbers, 1 number |
| Giveaway entries | 1 to the number of entries | Whole numbers, 1 number |
| Pick students | 1 to the class size | Unique, 5 numbers |
| Test data | 0.00 to 100.00 | Decimals, 2 places, 10 numbers |
Worked examples
A dice roll
Set the minimum to 1 and the maximum to 6, with whole numbers and 1 number. Each press gives a fair result from 1 to 6.
Picking three winners
For a list of 40 entries, set the range to 1 to 40, choose 5 numbers, and turn on unique numbers. Each number appears only once, so no entry wins twice.
Decimal values for testing
To create sample prices between 10.00 and 50.00, choose decimals with 2 places and generate the list you need.
Common mistakes
- Setting the minimum above the maximum. The generator needs the smaller number first. It will flag this for you.
- Asking for more unique numbers than the range holds. A range of 1 to 5 has only five whole numbers, so unique results stop there.
- Assuming a number is picked in order. Each result is independent, so a repeated value can happen unless unique is on.
Frequently asked questions
What does a random number generator do?
It picks numbers at random between a minimum and a maximum value that you choose. You can generate whole numbers or decimals, one number or many.
Are the numbers truly random?
The tool uses your browser's cryptographically secure random number source, so each result is unpredictable. It is suitable for games, drawings, and general use.
Is the minimum or maximum included?
Yes. Both the minimum and the maximum can be picked. For example, a range of 1 to 6 can return 1, 2, 3, 4, 5, or 6.
How do I get unique numbers with no repeats?
Turn on the unique option. Each number in the list appears only once. You cannot ask for more unique whole numbers than the range contains.
Is the Xornex random number generator free?
Yes. The Xornex random number generator is available to use free of charge.