How to get a random number from 1 to 13
Both 1 and 13 can come up — that is 13 possible numbers, each equally likely.
Change the range any time, or ask for many numbers at once with No repeats.
Good for
- Card ranks from ace to king
- Pick one of thirteen items or people
- Class or team draws
- Deal all thirteen with no repeats
More ranges
For anything else use the Random Number Generator with any range.
The odds
| On a single draw from 1 to 13 | Chance |
|---|---|
| Any one number you name | 1 in 13 (7.7%) |
| The same number twice in a row | 1 in 13 (7.7%) |
| An even number | 6 of 13 (46.2%) |
| An odd number | 7 of 13 (53.8%) |
| A prime number | 6 of 13 (46.2%) |
| A number above 7 | 6 of 13 (46.2%) |
Averages and repeats for 1 to 13
The average of many draws from 1 to 13 settles near 7, and a single draw typically lands within about 3.74 of it (the standard deviation of 13 equally likely whole numbers is the square root of (13² − 1) ÷ 12). Repeats are likely sooner than most people expect:
| With 13 possible numbers | Chance |
|---|---|
| At least one repeat in 2 draws | 7.7% |
| At least one repeat in 3 draws | 21.9% |
| At least one repeat in 5 draws | 58.4% |
| At least one repeat in 10 draws | 99.2% |
| Draws for a 50% chance of seeing one named number | 9 draws |
| Draws for a 90% chance of seeing one named number | 29 draws |
Randomness: Web Crypto getRandomValues. Probabilities on this page are exact counts — favourable numbers divided by all numbers in the range.
Common questions
How do I get a random number between 1 and 13?
Press Generate. Both 1 and 13 are included, so each of the 13 numbers has a 1 in 13 chance (7.7%).
Can I get several numbers from 1 to 13 with no repeats?
Yes — tick No repeats and set “How many numbers”. You can ask for up to 13, which returns every number from 1 to 13 in random order.
What are the odds of the same number twice in a row?
It is 1 in 13 (7.7%). Each draw is independent, so a number that just came up is no more or less likely next time.
Can I use 1 to 13 for playing cards?
Yes — a suit has 13 ranks: ace (1), 2 to 10, jack (11), queen (12) and king (13). Use Draw one at a time to deal them with no repeats.
Is this random number generator truly random?
The numbers come from your browser’s secure random source (the same one used for encryption keys), and the range maths is exact, so no number is favoured. It is a computer-generated source rather than hardware noise, which is more than enough for games, draws, raffles, sampling and classroom use.