This random number generator picks whole numbers between any two values you choose, one at a time or in a list of up to 10,000. Type a start and an end, say how many numbers you want, decide whether repeats are allowed, and press Generate. You can copy the result or download it as a text file, and nothing needs to be installed or signed up for. It also works as an RNG or a random number picker for raffles and games, with No repeats available when each number may only come up once.
Setting the range
The From and To fields take whole numbers from -1,000,000,000 to 1,000,000,000. Both ends are included, so a range of 1 to 6 can return 1 and can return 6. Write the minus sign as a hyphen or as a true minus sign. Do not type thousands separators or decimals: the field accepts plain digits only, because a comma means different things in different countries. If From is larger than To, the page swaps them for you and shows a short notice. It also works as a random number generator from 1 to 10: set From to 1 and To to 10.
Repeats, sorting and how many
How many takes a number from 1 to 10,000. With repeats allowed, each number is an independent draw, so the same value can come up twice, as it can when you roll a die twice. Turn on No repeats and every number in one result is different, like drawing balls from a bag without putting them back. That mode needs a range at least as large as the amount you ask for. Ask for six different numbers from a range of five, and the page explains that the range holds only five.
The Sort option puts the list in ascending order. Leave it off if the order of the draw matters to you, for example when the first number selects the first winner.
Copy and download
A short list is shown on the page and copied as numbers separated by commas. Above 100 numbers the page also offers a download: a plain text file with one number per line, which opens in a spreadsheet or text editor. In our own timing on a desktop computer, producing 10,000 numbers took about 5 milliseconds, so the wait is never noticeable.
Common uses
- Assigning numbered tickets, seats or order of turns.
- Picking a sample of rows from a numbered list, using No repeats so no row is picked twice.
- Making test data, or a quick dice-like result outside the six-sided range.
- Choosing a winner from a numbered list of entries in a giveaway.
If you only want a number from 1 to 100, the 1 to 100 version has that range set already. For names rather than numbers, see the random name picker.
Frequently asked questions
How large can the range be?
The limit on either end is 1,000,000,000 in absolute value, so the widest range runs from -1,000,000,000 to 1,000,000,000. You can ask for up to 10,000 numbers at a time.
With or without repeats?
Your choice. By default repeats are allowed. Switch on No repeats to get each number at most once. The draw then works through the range without ever storing the whole range, so even a wide range is quick.
Can I use negative numbers?
Yes. Either field can be negative, and a range that crosses zero works as expected. A decimal point is not accepted, so the numbers are always whole.
Can I copy or download the list?
Yes. Copy puts the numbers on your clipboard separated by commas. When the list is longer than 100 numbers, a download as a text file with one number per line is offered.
How random is it?
Each number comes from the browser's cryptographic generator, with values that would skew the result discarded and redrawn. See How random is it for the method and a test you can run.