Skip to the content

Random Number Between 0 and 9

A single random digit from 0 to 9. That is ten outcomes, because zero counts, each with a chance of 1 in 10.

Share this tool:TwitterFacebookLinkedInWhatsAppEmail

The odds from 0 to 9

Possible outcomes10
Chance of each number1 in 10, or 10%
Average over many draws4.5
Draws until a repeat is more likely than not5

The last row surprises most people. With repeats allowed, 5 draws from this range already hold a repeat 70% of the time. If every number may come up only once, tick No repeats.

For a code of several digits, set How many to the number of digits and leave No repeats unticked: a real code can contain the same digit twice. Four digits give one of 10,000 possible codes.

For a PIN written out as one code: PIN generator.

Drawing more, or drawing again

Press Generate, or Enter in one of the boxes, for the next number. Every draw is independent of the ones before it. The generator does not look at what has already come up, so no number is ever "due".

For several numbers at once, change How many. Tick No repeats to draw them like tickets from a hat, each number at most once, and Sort from low to high if the order they came out in does not matter.

The numbers come from your browser's cryptographic random generator, and the draw is set up so that every number in the range has exactly the same chance. Nothing is sent to a server. The earlier draws under the result are gone when you close or reload the page.

Decimals, negative numbers and any other range are on the random number generator page, which also explains how the draw is kept fair.

See all 9