Random Number Between 1 and 9
Nine outcomes, each with an 11.11 percent chance. Note the range starts at one, so zero never appears: this gives you a number from one to nine, not a random digit.
1 to 9 1
9 possible values, each equally likely. Tick nothing and repeats can happen; that is what random means.
One in nine, or 11.11 percent
Every value from 1 to 9 has the same 11.11 percent chance. The decimal repeats forever because nine does not divide 100, which is also why you will never see a clean percentage quoted for this range.
A digit is not a number from 1 to 9
There are ten digits, because zero is one of them. If you are filling in a digit somewhere, this page gives you the wrong set: it never returns 0, so 0 would be missing and the other nine values would each carry 11.11 percent instead of 10 percent. Use 1 to 10 and read 10 as zero if you want a true digit.
Do not build this by adding
A common shortcut is to take two draws from 1 to 3 and add them. That does not produce a flat 1 to 9. It produces sums from 2 to 6, and 4 turns up 33.33 percent of the time while 2 and 6 each turn up 11.11 percent. To get nine flat outcomes from two draws of 1 to 3, treat them as coordinates on a three by three grid and number the nine squares.
Repeats and collisions
Two draws in a row match 11.11 percent of the time. Draw four numbers and the chance that two of them are the same is 53.91 percent, so a repeat inside four draws is the likelier outcome.
Not for PINs
This runs on your browser’s ordinary random function, which is predictable to anyone who sees enough of its output. It is fine for picking a question or a seat. It is the wrong tool for a PIN, a passcode or anything a person has a reason to guess.