Random Answers

Card shuffler

Press Deal

One outcome in 52

Drawn in your browser · nothing stored

Local · without replacement, 52 cards

A standard fifty-two card deck, shuffled and dealt. Set the count to one for a single random card, or higher for a hand. Cards come off one shuffled deck, so a hand never repeats a card, while two separate deals are independent and can both turn up the ace of spades.

How to shuffle and deal

1 Set how many cards you want. One gives a single random card; five gives a hand.
2 Press Deal. The cards come off the top of a freshly shuffled deck.
3 Deal again for a new shuffle — the deck is not continued between deals.

The shuffle is Fisher–Yates over your browser’s cryptographic generator, which makes all 52-factorial arrangements equally likely. That number, roughly 8 followed by 67 zeros, is large enough that any shuffle you produce here has in all likelihood never occurred before in the history of card playing. A real riffle shuffle is a long way behind: the standard result is that a physical deck needs about seven riffles before it is properly mixed, and the three or four most people give it leaves a great deal of the previous order in place.

Drawing a single card is the same machinery with the count set to one, and the odds are the flat ones you would expect. Any named card is one in fifty-two, any suit one in four, and any rank one in thirteen. Because every deal starts from a full deck, the same card can come up twice running, which surprises people who expect the deck to deplete the way it would at a table. If you want that depleting behaviour, deal all the cards you need in a single go.

What people use it for

  • Dealing a hand when the cards are in the other room
  • Drawing one random card to settle something
  • Picking a card for a trick or a classroom demonstration
  • Dealing to several players from one shuffle
  • Getting a shuffle that can be checked afterwards with a seed

Questions

No. Cards are drawn without replacement from one shuffled deck.

Bayer & Diaconis. Trailing the dovetail shuffle to its lairMDN, Crypto.getRandomValues()
Was this tool any good?
Internal signal only · I use it to find the tools worth rebuilding