Card Randomizer

Pick a random card order, then get a multi-deal plan that recreates it: each deal uses at most 8 piles plus one overflow pile that the next deal re-deals; collect each deal's piles left to right, stack the deals, and you get exactly the randomized order.

How it works
  1. Enter the number of cards in your deck and press Randomize. A target order is picked uniformly at random (Fisher–Yates), so every order is equally likely.
  2. The target is split into several deals from the bottom of the deck up. Cards inside one pile keep their relative order, so the app groups the bottom-up sequence into runs and gives each deal at most 8 piles (1…8); every run that does not fit goes to a 9th overflow pile.
  3. Deal 2 takes that overflow pile (top card first) and again splits it into at most 8 piles plus a new overflow pile, and so on until nothing is left over. Because each overflow pile is picked up top-first, the dealing direction flips every deal — odd deals split increasing runs, even deals decreasing ones.
  4. To perform the shuffle, follow Deal plan: deal the whole deck in deal 1, then the overflow pile in deal 2, and so on, always placing each card on top of its pile. A gray OVF cell means the card lands on the overflow pile and will be re-dealt later.
  5. Piles — shows each deal's piles as they sit after dealing (top card on top), with the overflow pile shown at the end. Collect each deal left to right, pile 1 first, each next pile on top of the previous; then place deal 2's stack on top of deal 1's, deal 3's on top of that, and so on.
  6. Resulting order — the top of the collected stack is the deck you get. No flip needed: this list is already top to bottom.

Why this shape? Cards inside one pile keep their original relative order, so each pile is a contiguous run of the target read bottom-up. Capping a deal at 8 piles keeps the table manageable: whatever does not fit is parked on the overflow pile and re-dealt by the next deal, and stacking the deals bottom-up reconstructs the whole target order.