A random card picker deals playing cards from a standard deck with every card exactly as likely as the next. Draw one card for a trick or a game, deal a hand of five, let the deck run down or put every card back, and add the jokers if your game uses them.
How to use the random card picker
Tap the green table, press Draw, or press Space, Enter, or D. The cards slide onto the table face down and turn over one at a time. The result line names them, such as Queen of hearts, and the tiles above show how many draws you've made, how many cards are left, and the last card. A thin bar shows how much of the deck remains.
Set up the deck under Deck settings: how many cards each draw deals, what happens to drawn cards, and whether the jokers are in. Shuffle puts every card back whenever you like. With reduced motion on, the cards skip the deal and land face up.
Keep out or put back
With Keep out, drawn cards leave the deck, just like dealing from a real pack, and the count of cards left goes down until you shuffle. A single card's chance shows under the result: 1 in 52 from a full deck, then 1 in 51, and so on. When a draw needs more cards than are left, every card goes back in first, including the ones that hadn't been drawn, and the result says the deck was shuffled. With five cards per draw, that happens on the 11th draw, after 50 cards have been dealt. With one card per draw, you see all 52 cards once each, in a random order, before the deck refills.
With Put back, every draw comes from the full deck, so the same card can turn up again on the very next draw. Switching between the two puts every card back in the deck.
Draw one card or a hand of up to five
Under Cards per draw, choose 1, 2, 3, 4, or 5. Within one draw a card never appears twice, exactly as if you dealt them from one deck. Five cards make a poker hand, and there are 2,598,960 different five-card hands a deck can deal. Changing the number of cards doesn't touch the deck, so you can deal a hand of five and then draw single cards from what's left. The result line uses short names for a hand, such as 7♦ K♥ A♠, so even five cards fit on one line.
Jokers: a 54-card deck
Most card games use 52 cards, but some, such as Canasta and some versions of rummy, use the jokers too. Under Jokers, choose Add 2 to put a red and a black joker in the deck, making 54 cards. Adding or removing them puts every card back, and a row for jokers joins the suit counts. With the jokers in, a single card's chance starts at 1 in 54, and the jokers count toward the cards left.
Is the random card picker as fair as a shuffled deck?
Yes, exactly as fair as dealing off the top of a perfectly shuffled one. Each draw runs a partial Fisher–Yates shuffle over the cards still in the deck, and each card in the draw is chosen with a cryptographic random value, one of 4,294,967,296. For the first card from a full deck there are 52 outcomes, and since 2^32 mod 52 = 48, the 48 raw values that would tip the odds are redrawn whenever they come up. The second card is one of the 51 left, where only 1 value is over, and a 54-card deck with jokers sets aside 22. The result: every card left has the same chance, and every hand, in every order, is equally likely.
The cards are fixed before they're dealt face down; the deal and flip only reveal them. With every draw already perfectly random, the deck has no stored order to mix, so Shuffle simply puts every card back, ready for a fresh game.
Draws, cards left, and suit counts
Recent draws lists your last 20 draws, numbered and newest first, and marks the ones where the deck refilled. Under Suits drawn, a bar for each suit counts the cards you've drawn, up to your most recent 5,000. That makes a live experiment: over many draws, each suit settles near a quarter of the total. Reset history and stats clears the history and counts and puts every card back, keeping your settings.
Card odds, from one ace to a royal flush
A deck of 52 cards hides some surprising numbers:
- Any one card: 1 in 52, or 1.9%. Any ace is 1 in 13 (7.7%), any heart 1 in 4, and any jack, queen, or king 3 in 13 (23.1%).
- A pair in two cards: whatever the first card is, 3 of the 51 left match its rank, so two cards share a rank 5.9% of the time.
- Five-card hands: 42.3% of hands hold exactly one pair, and 34.1% hold at least one ace. Only 4 of the 2,598,960 hands are royal flushes, 1 in 649,740.
- A flush: five cards of one suit, straight flushes included, comes up 0.198% of the time, about 1 in 505.
- Repeats with Put back: drawing one card at a time, there's a better than even chance, 52.0%, of seeing a repeat within 9 draws.
How many shuffles does a real deck need?
A deck can be put in order 52 × 51 × 50 × … × 1 ways, a number called 52 factorial, about 8 × 10^67, so a well-shuffled deck is almost certainly in an order no deck has been in before. Real shuffles take work to get there. In 1992, mathematicians Dave Bayer and Persi Diaconis showed that it takes about seven riffle shuffles to mix a deck well. The method used here goes back to Ronald Fisher and Frank Yates, who described it in 1938, and to Richard Durstenfeld, who wrote the computer version in 1964.
Magic tricks, turn order, and class experiments
Beyond dealing hands and settling turn order, a random card can start a magic trick or pick a writing prompt tied to its suit. In a probability lesson, a class can predict how often hearts should turn up, draw 100 single cards with Put back, and compare the suit counts with a quarter each. For a game built on the odds of the next card, play Higher or Lower, or lay out a whole deck in Solitaire.
Tap the table, or press D and S
The whole green table is one big button, so on a phone a tap anywhere on it deals the next cards:
- Touch or mouse: tap the table or the Draw button, and Shuffle to put the cards back.
- Keyboard: press Space, Enter, or D to draw, and S to shuffle.
- Screen readers: the table button names the cards on it, each draw is announced with the full card names, and every recent draw reads out in words.
What the deck remembers between visits
There's no account to open and nothing to buy. You need a connection to load the page, but each draw is made in your browser, and the cards you turn over aren't sent to a server.
What the picker does keep, in this browser's local storage, is the state of your deck: your settings, the cards left and the cards on the table, your draw count, your last 20 draws, and the last 5,000 cards behind your suit counts. That's why a half-dealt deck is still half-dealt when you come back. The privacy policy lists what the site stores.