How to generate a random number
- Enter the range in From and To — for example, 1 and 100.
- In How many, enter how many numbers you need: 1 to 10,000.
- Turn on No repeats if each number may come up only once.
- Open More options to exclude numbers, get decimals, keep only even or odd numbers or use a lottery preset.
- Press Generate or hit the Space key, then copy the result, share a link to it or open the Protocol.
Popular ranges: 1–10, 1–100 and others
Any limits will do, but most people need a random number generator for 1–10 or 1–100. Here is what the popular ranges are for:
| Range | Typical use |
|---|---|
| 1–2 | A choice between two options, just like a coin flip |
| 1–6 | A stand-in for a lost die; there are virtual dice too |
| 1–10 | Guessing games, a quick choice of a task, a seat or a team |
| 1–100 | Classroom games, small giveaways and “guess the number” |
| 5 of 36, 6 of 45, 6 of 49 | Lottery sets of unique numbers |
For one quick number, a coin or a yes-or-no answer, use the all-in-one randomizer.
What a random number picker is used for
- Giveaways by comment number. Number the comments in the order they were posted and draw the winner's number. For a contest with a public protocol page, use the giveaway picker.
- Raffles and ticket draws. Draw the winning ticket and list the unsold numbers in Exclude numbers so they cannot win.
- Classroom. Call on a student by number, or put the whole class in a random order with Shuffle 1…N.
- Samples and test data. Pick random row or invoice numbers for an audit, or generate decimals with up to six places for a probability exercise.
Modes and settings
No repeats and the order (as drawn, ascending or descending) are always at hand; the rest is under More options:
- Exclude numbers. Single values and ranges, such as
7, 13, 20-25, that must not come up. - Whole or decimal numbers. Decimals have 1 to 6 decimal places.
- Even or odd. Any numbers, even only or odd only.
- Shuffle 1…N. Puts all the numbers of the range in random order — a ready-made queue.
- Lottery sets. 5 of 36, 6 of 45, 6 of 49, 6 of 52, 5 of 50 and 5 of 69.
A single number is shown in very large type, several as numbered balls. The last 30 results stay in the history, kept only in your browser. Any result can be copied, opened in full screen or shared as a link that opens the same numbers and settings on any device. The Protocol records the date, time, settings and result; save it as a PNG image or print it to PDF.
Is the result really random?
Yes. Every number is drawn with crypto.getRandomValues(), the browser's cryptographically secure generator, which the operating system seeds with unpredictable data — so the next number cannot be worked out from the previous ones.
The random bits are mapped onto your range so that every value has an equal chance: in a draw from 1 to 100, the number 1 is exactly as likely as 57 or 100. With No repeats, every number that has not come up yet has the same chance of being next.
The calculation runs on your device the moment you press the button, and nothing is sent to a server. The article on how the randomness works explains the details.
Frequently asked questions
How do I pick a random number between 1 and 100?
Enter 1 in From and 100 in To, set How many to 1 and press Generate. Any other range works the same way: 1 to 10, 1 to 1,000 or −50 to 50.
Can I draw several numbers without repeats?
Yes. Turn on No repeats and set How many (up to 10,000): every number in the result will be different. With the switch off, numbers are drawn independently, so repeats are possible. If the range holds fewer numbers than you asked for, the generator explains what is wrong instead of repeating them.
How do I pick a giveaway winner by comment number?
Count the comments, enter 1 in From and the total in To, set How many to the number of winners and turn on No repeats. Then save the Protocol or copy the link to the result: anyone who opens it sees the same numbers and settings.
Can it generate lottery numbers?
Yes. The lottery presets under More options draw a full set of unique numbers, for example 6 of 49. If your lottery has a bonus ball, draw it separately in its own range. A random set has exactly the same chance of winning as any other combination.
How is it different from Google's random number generator?
Google's widget gives one number between a minimum and a maximum. That is enough to settle a bet, but not to run a draw: here you can pick several winners without repeats, exclude numbers, sort the result, get decimals or a lottery set, and keep the link or the protocol as a record.
What is the largest range the number randomizer supports?
The limits can be anything from −999,999,999,999,999 to 999,999,999,999,999, and one draw returns from 1 to 10,000 numbers.