Works on this device
Random Card Generator
Choose Draw to get a random playing card from a standard deck of 52 cards. You can draw several cards, add jokers, use more decks, deal hands to players or shuffle a whole pack. Every card in the pack has the same chance.
Choose your settings
Check these values
The cards are drawn in this browser. Nothing is sent to a server.
Your cards will show here
Choose Draw to get cards.
Drawn on this device
How it was worked out
How to use the random card generator
- Choose what to do: draw cards, deal hands to players, or shuffle a whole pack.
- To draw cards, enter how many cards you want. Choose the number of decks and tick the box when you want jokers.
- Choose what happens after each card: it stays out of the pack, or it goes back into the pack.
- Choose Draw. Choose it again for new cards.
- Use Copy cards to paste the list somewhere else, Download list to save it as a text file, or Print.
What each option does
- Leave it out of the pack works like a real draw: no card comes up twice. With 2 decks, a card can come up twice, once for each deck.
- Put it back and mix the pack again makes every draw start from the full pack, so the same card can come up again.
- Number of decks puts 1 to 8 decks together into one pack.
- Add 2 jokers to each deck makes a deck of 54 cards. The jokers are named Red Joker and Black Joker here.
- Deal hands to players shuffles one deck of 52 cards and deals a hand to each player, one card at a time in turn. You can add shared cards on the table. For Texas Hold'em, enter 2 cards for each player and 5 shared cards.
- Shuffle a whole pack shows every card of the pack once, in a random order.
How a card is chosen and what fair means
Fair means two things here. Every card still in the pack has the same chance to be the next card. And a draw does not depend on earlier draws: the tool does not remember your last cards.
When cards stay out of the pack, the tool shuffles the whole pack once and takes the cards from the top. The shuffle is the Fisher-Yates method: it goes from the last place of the pack to the second place and lets each place change places with a randomly chosen place that is not after it. Every order of the pack has the same chance.
When cards go back into the pack, each card is one random choice from the whole pack.
Each choice uses random bytes from the secure generator of your browser (crypto.getRandomValues). A value that does not fit is thrown away and drawn again. The tool does not use the remainder after dividing, which would favour some cards a little, and it never uses Math.random.
Poker hands that the tool names
When a player has five or more cards to use, the tool names the best poker hand that five of them can make. From the highest to the lowest, the hands are:
- Royal flush: 10, Jack, Queen, King and Ace of one suit.
- Straight flush: five cards in a row of one suit.
- Four of a kind: four cards of the same rank.
- Full house: three cards of one rank and two of another rank.
- Flush: five cards of one suit, not in a row.
- Straight: five cards in a row, in mixed suits. The ace can be high (10-J-Q-K-A) or low (A-2-3-4-5). Q-K-A-2-3 is not a straight.
- Three of a kind: three cards of the same rank.
- Two pair: two cards of one rank and two cards of another rank.
- One pair: two cards of the same rank.
- High card: none of the hands above.
Worked examples
One card from one deck: each of the 52 cards has a chance of 1 in 52. With jokers the pack has 54 cards, and each card has a chance of 1 in 54. Two decks with jokers make a pack of 108 cards.
Five cards from one deck can make 2,598,960 different hands. Only 4 of them are a royal flush, which is 1 hand in 649,740. A hand with one pair is much more common: 1,098,240 hands, about 42.3% of all hands.
A deal for 4 players with 5 cards each uses 20 cards and leaves 32 cards in the deck. A Texas Hold'em deal for 6 players uses 6 × 2 + 5 = 17 cards.
Limits you should know
- The tool knows the standard deck of 52 cards with the suits Clubs, Diamonds, Hearts and Spades, and 2 jokers for each deck if you add them. It has no tarot, UNO, Lotería or trading cards, and it shows card names and signs, not pictures.
- One draw gives up to 1,000 cards. A pack holds up to 8 decks, which is 432 cards with jokers. The table on the page shows the first 500 cards.
- Hands are dealt from one deck of 52 cards without jokers, to at most 26 players. A player gets 1 to 13 cards, and there are 0 to 5 shared cards.
- The tool names the kind of poker hand. It does not compare two hands of the same kind, and it does not know the special rules of each poker game.
- This page deals cards for games, practice and lessons. It gives no betting advice. It cannot tell which card comes next in a real game or in a casino.
- The cards cannot be made again later. There is no seed number.
- If your browser has no secure random generator, the tool stops and tells you. It does not fall back to a weaker one.