Random Number Generator
Pick random numbers between any minimum and maximum. Get one number or thousands, allow repeats or not, sort them, or add decimals. Handy for raffles, lotteries, games and sampling.
Quick picks
Your number
History
Key facts
- Price
- Free, with no sign-up and no usage limits
- Privacy
- Runs in your browser: your files and text are never uploaded
- Works on
- Any current browser on Windows, macOS, Linux, ChromeOS, Android and iPhone
- Made by
- Toolgu
- Last updated
How to use the random number generator
- Enter the lowest and highest number you want. Both are included, so 1 to 6 works like a die.
- Choose how many numbers to pick, from 1 to 10,000.
- Tick No repeats to make every number different, and choose a sort order if you like.
- Press Generate (or Enter). Copy the numbers or generate again.
How random are the numbers?
Most websites use Math.random(), a fast formula that only looks random. This generator uses your browser’s cryptographic generator, crypto.getRandomValues, which draws on unpredictable events in your device and is designed so results can’t be predicted. Every whole number in the range, including the minimum and maximum, has the same chance. Nothing is sent to a server.
Ways to use it
- Raffles and giveaways: set the range to your ticket numbers and pick the winners with No repeats.
- Lottery numbers: the 6 of 49 preset picks six different numbers in order.
- Classroom: pick a student number, or shuffle 1 to 30 for a presentation order.
- Games: replace dice, choose who goes first or pick a random level.
- Sampling: choose random rows from a list or survey for a fair sample.
With or without repeats
With repeats, every draw is independent, so the same number can come up twice, like rolling a die again. Without repeats, numbers are drawn like tickets from a hat. Ask for as many numbers as the range holds (1 to 20, count 20) and you get the whole range in a random order: a shuffle.
Frequently asked questions
How do I generate a random number?
Enter the smallest and largest number you want (both are included), choose how many numbers and press Generate. For 1 to 10, set Min to 1 and Max to 10.
Are the numbers truly random?
They come from your browser’s cryptographic random number generator (crypto.getRandomValues), the same source used to create passwords and encryption keys. Every number in the range has an equal chance.
How do I get numbers without repeats?
Tick “No repeats”. Each number then appears at most once, like drawing tickets from a hat. You can’t ask for more unique numbers than the range holds; 1 to 10 has only ten.
Can I use it for a raffle or lottery?
Yes. For a raffle, set the range to your ticket numbers and pick the number of winners with No repeats on. The Lottery preset picks 6 different numbers from 1 to 49 in order. Check the official rules of any lottery you play.
Can it make decimal numbers?
Yes. Choose 1 to 6 decimal places, for example 0 to 1 with 2 decimals gives values like 0.37.
Related tools
- Wheel of NamesSpin a wheel of your own names or options to pick one at random
- Dice RollerRoll d4 to d100, several dice, modifiers and advantage
- Speech Topic GeneratorRandom impromptu, persuasive, informative and funny speech topics
- Yes or No WheelSpin for a random yes or no, with maybe and best of 3 or 5
- Flip a CoinToss a virtual coin for heads or tails, one or many at a time
- Word CounterWords, characters, sentences and reading time
- Invoice GeneratorMake a professional invoice and download it as a PDF
- Mortgage CalculatorMonthly payment with taxes, insurance and PMI