Random Number Between 1 and 1000

Generate a random whole number from 1 to 1000, for big raffles, giveaways and sampling from long numbered lists.

Press Generate for a random number between 1 and 1000, ends included.

Odds for numbers between 1 and 1000

Possible numbers1000
Chance of any one number1 in 1000 (0.10%)
Average result over many picks500.5
Even / odd numbers500 even, 500 odd

Draws and giveaways from 1 to 1,000

Use 1 to 1,000 for large raffles, or to sample rows from a numbered list such as a spreadsheet. With No repeats ticked you can draw up to 1,000 numbers at once, which gives you the whole range in a shuffled order.

Match the range to the numbers printed on your tickets. If they run from 000 to 999 instead of 1 to 1,000, set the minimum to 0 and the maximum to 999, so the ticket marked 000 can win too.

Duplicates in a 1 to 1,000 draw

Numbers pickedChance of a repeat (repeats allowed)Different sets (no repeats)
20.10%499,500
30.30%166,167,000
51.00%8,250,291,250,200
104.4%about 2.6 × 1023
2526.1%about 4.7 × 1049
5071.2%about 9.4 × 1084
10099.4%about 6.3 × 10139

With repeats allowed, a duplicate is already more likely than not by pick 38 (50.9%), so keep No repeats ticked for any draw where a number should win only once. A particular set of 5 winning numbers comes up 1 time in 8,250,291,250,200.

Raffle odds with tickets numbered 1 to 1000

When every ticket from 1 to 1000 has been sold and winners are drawn with No repeats ticked, your chance of winning at least one prize depends on how many tickets you hold and how many winners are drawn:

Winners drawn1 ticket5 tickets10 tickets
10.10%0.50%1.00%
30.30%1.49%2.97%
50.50%2.48%4.91%
101.00%4.91%9.60%

Holding 5 tickets with one winner is a straight 5 in 1000. Drawing all the winners in one go gives the same odds as drawing them one at a time.

Guess the number between 1 and 1000

Playing higher or lower? Always guess the middle of the numbers that are left, and you'll never need more than 10 guesses for 1 to 1000. Guessing at random without the hints takes 500.5 guesses on average, even if you never guess the same number twice.

How long until your number comes up

Chance of having seen itWeekly draws needed
50%693
90%2,302
99%4,603

Say one number from 1 to 1,000 is drawn each week and every number goes back in the pot. Your number's average wait is 1,000 weeks, and there's roughly a 1 in 10 chance it takes longer than 2,302.

Checking a batch of 1,000 draws

With repeats allowed, 1,000 picks give each number 1 appearance on average, and a single number lands between 0 and 3 at least 95% of the time. Gaps are expected at this size: about 368 of the 1,000 numbers won't appear in the batch at all.

Sampling rows from a list of 1,000

Tick No repeats and Sort results, and each pick is a row to check. Sorting doesn't change which rows were chosen. It only makes them easier to find. Random samples can still bunch up, as the last column shows:

Sample sizeShare of the listAverage gap between sorted picksChance it skips rows 1–100 entirely
101%9134.7%
505%19.60.45%
10010%9.91 in 68,042
20020%51 in 18,718,245,298

A sample of 10 skips the first hundred rows about a third of the time. That's fine for a quick spot check. If every part of the list must be covered, split it into blocks first and sample each block on its own.

Closest-guess contests

For a "guess the number" contest, generate the secret number first and keep it hidden. Write it down or screenshot it before any guesses arrive. A single guess lands within 10 of it about 2.1% of the time, within 50 about 10.1%, and within 100 about 20.1%, as long as the secret isn't near either end. Two random numbers from 1 to 1,000 sit 333.3 apart on average.

Draw 10 winners from 1,000 tickets and there's a 8.7% chance that two of them are consecutive numbers, such as 417 and 418. That's normal, not a sign of a rigged draw. Announce the method before you draw, and publish the full list of winning numbers afterwards. Anyone can then check that each ticket was in the pot.

How the number is picked

Your browser's Web Crypto API supplies a 32-bit random value (4,294,967,296 possibilities). Dividing by 1000 leaves 296 spare values that would tilt the odds toward the lowest 296 numbers, so the generator discards them and draws again (1 time in 14,510,025).

Frequently asked questions

How do I pick 10 winners from 1,000 tickets?

Set the range to 1 to 1,000, ask for 10 numbers and keep No repeats ticked. Each ticket then has a 1% chance of being among the winners.

How soon does a 1 to 1,000 draw repeat a number?

With repeats allowed, 38 picks are enough for a repeat to be more likely than not (50.9%). Tick No repeats if every number must be different.