Generate random numbers in any range. Single number or a list, no-repeat option and decimal places included.
No sign-up, no fees.
Random number generator: in any range you like.
A single number or a list of up to 1000.
No-repeat option: the same number doesn't come twice.
Decimal places too.
What you type is processed, but never shared with anyone.
How to use the Random Number Generator
Drawing lots, or need a number for a game? Five steps:
Type the range. Type the Minimum and Maximum values. Both are included: if you type 1 and 6, 1 and 6 can come out too.
Type the count. Type How many numbers you want (1000 at most).
Pick decimals (optional). If you want decimal numbers, type the number of Decimal places; 0 is whole numbers.
Turn off repeats (optional). If you don't want the same number to come again, tick No repeats (no number twice).
Generate. Press Generate and take the result with Copy.
What is picking a random number?
Picking a random number means choosing one (or several) by giving every number in a certain range an equal chance. It's used to pick the student to speak in class by number, to decide the winning ticket number in a raffle, to draw a number instead of dice in board games, to take a random sample for a statistics assignment, or to produce test data. It's called a "random number generator".
Is it really random?
The numbers come from the browser's secure random number generator (crypto.getRandomValues). This is a better source than the ordinary Math.random.
It also works without bias: when picking from the 6 values 0 to 5, the small tendency that makes some numbers come up slightly more often than others is prevented by discarding surplus values. So every number in the range has exactly equal odds.
No-repeat selection
With "No repeats" on, the same number doesn't come twice. If you ask for more numbers than the range holds (like 20 different numbers between 1 and 10), you get a warning. This option suits raffles and lottery-like picks.
Tips for random integers and raffles
Class and team: draw a single number between 1 and 30 by student numbers.
Raffle: number the participants and draw as many numbers as winners and substitutes with No repeats.
Sample selection: to pick 20 of 500 records, generate 20 non-repeating numbers between 1 and 500.
Limits
The range can span about 4.29 billion different values (2³²) at most.
Up to 6 decimal places are supported.
This tool isn't made for jobs where the result is legally binding, like official draws or games of chance; for such jobs the rules of the relevant authority must be followed.
Why is a random number generator better than human choice?
When people pick a "random" number, they unknowingly choose some numbers (7, 3, 17) more often and avoid extremes and repeats. A computer's secure random number generator gives every number a truly equal chance. If you need a fair pick or unbiased sampling, this difference matters.
Frequently asked questions
Is the random number generator free?
No cost at all. Not bad, right?
Can I get the same number twice in a row?
Yes; with no-repeat off, each number is drawn independently, so the same number can come back to back. That's the natural result of randomness.
Should I write decimal numbers with a point?
Yes, use a point or your usual decimal mark; both are understood.
Can there be negative numbers?
Yes. You can type a negative number as the minimum, for example between −10 and 10.
How do I pick a random number between 1 and 100?
Type 1 for the minimum, 100 for the maximum and press Generate.
How many numbers can I generate?
At most 1000 at a time.
How do I save the results?
Take them with Copy and paste into a file or message.
Can I use it on my phone?
Yes. Type the range and tap Generate.
Do results come sorted?
No, they come in the order drawn. If you want them sorted, copy the result and sort with Remove duplicate lines / sort.
Can I get the same results again?
No; each generation is new. If you want to keep results, copy them.
When is the no-repeat option used?
In jobs where the same number mustn't come out a second time, like raffles, deciding the order and picking samples.