Random Number Generator
Choose a range and how many numbers you want, then let the generator pick them fairly and at random.
- Free
- No sign-up
- Runs in your browser
Type of number
Press Generate to get your random numbers.
Numbers come from your browser’s secure random generator, and every value in the range is equally likely. Do not use this tool for passwords. Use the password generator instead.
How to use Random Number Generator
Set the range
Enter the minimum and the maximum. Both numbers can be picked, and negative numbers are allowed.
Choose how many and what kind
Type a quantity from 1 to 1,000 and select whole numbers or decimals. For decimals, choose between one and six decimal places.
Generate
Press Generate. Tick “No repeats” to get different numbers every time, or “Sort from low to high” to order the list, then copy it.
Example
Six different numbers from 1 to 49
Input
Minimum 1, maximum 49, quantity 6, whole numbers, no repeats, sorted
Result
- Example result: 4, 11, 19, 23, 38, 45
- Press Generate again and you get a different set
Common uses
Draws and giveaways
Pick a winning entry number from a numbered list of participants.
Games and classrooms
Roll a die with any number of sides, choose who answers next or create practice questions.
Sampling and testing
Select random rows to check, or random values for test data.
Everyday decisions
Settle a tie fairly when there are several equal options.
Tips for better results
- Every number in the range has the same chance each time. A number that has just come up is no more and no less likely to appear again.
- For a draw in which nobody can win twice, use “No repeats”. For something like a die roll, leave it off, because repeats are normal.
- Note down your settings if you need to show that a draw was fair. The result itself cannot be reproduced later.
- Use the password generator for anything that needs security. This tool is meant for games, draws and sampling.
Frequently asked questions
Is this random number generator truly random?
It uses your browser’s cryptographically secure random source, which is stronger than the simple generators built into many programming languages. It is suitable for draws and games.
Can the same number appear twice?
Yes, unless you tick “No repeats”. With repeats allowed, each pick is independent of the others.
Why do I get an error when I tick “No repeats”?
You asked for more numbers than the range contains. For example, 10 different numbers cannot be picked from the range 1 to 5.
Can I generate decimals?
Yes. Select Decimals and choose one to six decimal places. Every value with that many decimals inside the range is equally likely.
What is the largest range I can use?
Numbers can go up to 1 quadrillion in either direction, and you can ask for up to 1,000 values at once.
Last updated: