Random Playing Card Generator

Draw one or more cards from a shuffled deck, or deal hands for up to 12 players. Drawn cards stay out of the deck until you shuffle, just like real cards.

52 cards

Press Draw to turn over a card.

What to do

History (this visit only)

Nothing yet. Results appear here.

    Quick answer: the deck is shuffled with a fair Fisher–Yates shuffle, so all 52! orders are equally likely and any single card has a 1 in 52 chance of being on top. Cards you draw leave the deck, so you’ll never see the same card twice until you press Shuffle the deck (or tick “Shuffle all cards back before each go”).

    Examples

    You want to…Setting
    Pick a card, any cardDraw cards: 1
    A poker-style hand for four playersDeal hands: 4 players, 5 cards each
    Who goes first: high card winsDeal hands: one per player, 1 card each
    Probability practice in classDraw 1 repeatedly with “Shuffle all cards back” on, and tally the suits
    A full deal for a four-player trick-taking gameDeal hands: 4 players, 13 cards each

    How to use it

    1. Choose Draw cards (cards from the top of the deck) or Deal hands (cards dealt one at a time round the table, as a dealer would).
    2. Tick Include two jokers for a 54-card deck.
    3. Press Draw or Deal. The counter under the deck shows how many cards are left.
    4. Press Shuffle the deck to put every card back and shuffle again.

    How the shuffle works

    The deck is shuffled once, in your browser, with the Fisher–Yates (Durstenfeld) algorithm driven by the Web Crypto random generator and rejection sampling. Draws and deals then take cards from the top in order, exactly like a real deck: the randomness is all in the shuffle. A good physical shuffle needs about seven riffle shuffles to mix a deck well; a digital shuffle is fully mixed in one go.

    This tool is for card games, magic tricks, teaching probability and deciding things. It isn’t certified for gambling.

    Questions

    What are the chances of drawing a particular card?

    1 in 52 from a full deck (1 in 54 with jokers). Once some cards are out, it’s 1 in however many are left, provided that card is still in the deck.

    Why can’t I draw more cards?

    Drawn cards stay out of the deck. When there aren’t enough left, press Shuffle the deck to put them all back.

    Does dealing round the table change the odds?

    No. With a fairly shuffled deck, every player is equally likely to get any card whichever way you deal. Dealing one at a time simply matches how it’s done at a real table.

    Can I see the cards in text?

    Yes. Press Copy for a text list (such as “A♠, 10♥”); screen readers announce each card by name.

    References

    1. W3C. Web Cryptography Level 2: Crypto.getRandomValues(). World Wide Web Consortium specification.
    2. Richard Durstenfeld. Algorithm 235: Random permutation. Communications of the ACM 7(7), 1964.
    3. Donald E. Knuth. The Art of Computer Programming, Volume 2: Seminumerical Algorithms (3rd ed.), §3.4.2. Addison-Wesley, 1997.

    Page reviewed 1 December 2026.