Card shuffler
One outcome in 52
Drawn in your browser · nothing stored
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
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.
Yes. Each deal starts from a full deck, so consecutive deals are independent.
One in fifty-two, every time.
No, each deal reshuffles the whole deck. For a continuing game, deal all the cards you need in one go.
No, it is the standard fifty-two card deck.
Fisher–Yates over a cryptographic source, so every one of the 52! orderings is equally likely.
About seven. The familiar three or four leaves a lot of the original order in place.
Yes. Type a seed first and the same seed always deals the same cards.
No. The deal lives in the page and is gone when you close it.
Set the count to one. That is the single-card draw: one in fifty-two, from a deck reshuffled before every deal.
Deal the total in one go and split the row up. Five cards each for four players is one deal of twenty, with no card appearing twice.
Across a full deck, yes, since it is one deck. In a five-card hand it is a sample, so four hearts out of five is unremarkable and not a sign of anything.