Random card generator
Draw a card, or a hand of five, from a deck shuffled fairly.
Your card
?
Tap Draw, or press Space
The deck
Last hands
- None yet
- Free, no sign-up
- The result is drawn before anything moves
- Nothing leaves your browser
What it does
Tap Draw and this random card generator deals from a real 52-card deck, shuffled by your device’s secure random generator before the first card moves. Draw 1 to 5 cards, mix up to 5 decks, add jokers or leave out J, Q and K. Drawn cards stay out until you shuffle, like a real deck.
How to use it
- Pick how many cards, 1 to 5, under the table.
- Tap Draw, or press Space. The cards fly out of the deck and turn over.
- Keep drawing and the deck runs down. Tap Shuffle to put every card back.
- Set up the deck in the options: up to 5 decks, J Q K, jokers, Auto shuffle.
What people use it for
Game night, no drinks needed
Give each rank a task, like a dare for a 2, a question for a 7 and a new rule for a king, then draw a card each turn.
Card workouts
Each suit is an exercise and the number is the reps. Turn J Q K off for a lighter deck, add the jokers as rests, and work through the deck with Auto shuffle off.
Magic practice
Let the generator pick the spectator’s card, so you cannot steer it, and rehearse the reveal until it lands every time.
High card decides
Who goes first, who pays, who gets the last slice: one card each, and the higher one wins. High card keeps the score.
Teaching probability
Turn Auto shuffle on, draw 52 single cards and tally the hearts: it should land near 13. Then turn it off and watch the odds shift as the deck runs down.
What is in a deck of cards, and the odds
A standard deck has 52 cards in four suits: hearts and diamonds in red, clubs and spades in black (white here, on the dark table). Each suit runs ace, 2 to 10, jack, queen, king: 13 ranks. The jacks, queens and kings are the 12 face cards. Most packs add two jokers, which most games leave out.
| One card | From 52 | 54, with jokers |
|---|---|---|
| An ace | 1 in 137.69% | 2 in 277.41% |
| A heart, or any one suit | 1 in 425% | 13 in 5424.07% |
| A face card (J, Q, K) | 3 in 1323.08% | 2 in 922.22% |
| A red card | 1 in 250% | 13 in 2748.15% |
| One exact card (say, A♠) | 1 in 521.92% | 1 in 541.85% |
| A joker | none | 1 in 273.7% |
Take out J, Q and K and the deck has 40 cards, so an ace becomes 1 in 10 (10%) instead of 1 in 13. In a hand of five from a full deck, the chance of at least one ace is 34.12%, and of at least one heart 77.85%.
There are 52 factorial ways to order a deck, about 8.07 × 1067. That number is so large that a fair shuffle almost surely gives an order nobody has held before.
How it shuffles
The same way the RandALL app does: the deck is shuffled first, then the cards come off the top.
- The deck is built first. Thirteen ranks, ace to king, in four suits: 52 cards a deck, or 40 without J Q K, plus two jokers a deck when they are on. Up to 5 decks go into one pile.
- Then all of it is shuffled, once. Fisher-Yates: from the last card to the first, each card swaps places with a random card at or before it. The random numbers come from
crypto.getRandomValues, with rejection sampling so no place gets a rounding edge. Every order of the deck is equally likely. - A draw takes cards off the top. Your hand is settled the moment you tap Draw. The flight, the flip and the sound only show it.
- Drawn cards stay out until you shuffle. Like a real deck, it runs down as you draw, and it will not deal more cards than it has left. Shuffle puts every card back and mixes the deck again. Auto shuffle does that before every draw.
Tested. The deck holds exactly the right cards for every setting (1 to 5 decks, J Q K on or off, jokers on or off). Drawing whole decks in hands of 1 to 5 never gave a card twice. In 100,000 test shuffles every card was equally likely to come out on top, the ace of spades was equally likely to land in each of the 52 places, and all 24 orders of a four-card deck came up equally often (chi-square tests).
More random tools
Questions
Is this random card generator really random?
Yes. The whole deck is shuffled with crypto.getRandomValues, the random source browsers use for security, before the first card moves. Cards then come off the top, so no tap, timing or animation can change which card you get.
How many cards are in a deck?
52: four suits of 13 cards each, ace to king. Most packs come with two jokers as well, which is why Jokers adds two cards to every deck here.
What are the odds of drawing an ace?
1 in 13, which is 7.69% (4 aces in 52 cards). With the two jokers in, it is 4 in 54, or 7.41%. Leave out J Q K and it rises to 1 in 10.
How many face cards are in a deck of cards?
12: a jack, a queen and a king in each of the four suits. The chance that a card you draw is a face card is 3 in 13, about 23.08%.
Can I draw the same card twice?
Not from one deck between shuffles: a drawn card stays out until you tap Shuffle. With Auto shuffle on, every card goes back before each draw, so the same card can come up again next time. With 2 or more decks, one hand can hold two of the same card.
How many ways can a deck of cards be shuffled?
52 factorial, which is about 8.07 × 1067 different orders. A shuffle here picks one of them, each with the same chance.
How do I settle something between two people with cards?
Play high card: one card each from a fresh deck, aces high, and the higher card wins. Two cards of the same rank tie 5.88% of the time, and then you draw again.
Take it with you
RandALL for iPhone has 25 tools in one app: wheels and teams, real 3D dice, random alarms, Finger Picker and more. It works offline.
Your first 24 hours are free, with every tool. After that, subscribe or buy the lifetime unlock once. Family Sharing included.
Get it on the App StoreiPhone only for now. These web tools are yours to keep using.
