• Email Us: [email protected]
  • Contact Us: +1 718 874 1545
  • Skip to main content
  • Skip to primary sidebar

Medical Market Report

  • Home
  • All Reports
  • About Us
  • Contact Us

The Best Way To Shuffle A Deck Of Cards, According To Math

March 8, 2025 by Deborah Bloomfield

Card shuffling, assuming a standard deck of 52 cards, is just about one of the most randomizing things you can do, in theory. There are famously so many different possible permutations that it would take more seconds than have elapsed since the Big Bang to deal them all, even if you enlisted the help of a supercomputer.

ADVERTISEMENT

But theory and practice are two different things. When you actually shuffle a deck of cards, chances are you’re going to see some familiar runs when you deal them – areas where the mix isn’t quite as even as you intended. So, what’s the best way to shuffle a deck to get a proper spread? Is the key in technique, or tenacity? The answer, like so many things in life, all comes down to math.

How to shuffle cards

As anybody who’s ever been tricked into a round of 52-card pickup knows, there’s more than one way to mix up a deck of cards. There’s the “overhand shuffle”, which you’re likely familiar with: it’s “the shuffling technique where you gradually transfer the deck from, say, your right hand to your left hand by sliding off small packets from the top of the deck with your thumb,” wrote Johan Jonasson, a professor of Analysis and Probability Theory at Chalmers University of Technology in Sweden, in a 2006 paper on the method. 

It’s probably one of the easier shuffles to learn, but in terms of randomizing things, it could be better. According to Jonasson, it mixes the cards in a time that’s of order n2logn – in other words, however many cards you have, it takes more than that amount of time squared to get them mixed up properly. 

Given that a standard deck has 52 cards, that makes for a lot of shuffling. “For the overhand shuffle, you need thousands of [iterations],” explained Jason Fulman, Professor of Mathematics at USC Dornsife, in 2023.  “In fact, maybe closer to 10 or 11,000. So it’s a very poor method.”

Rather better for shuffling is the “riffle” – where you cut the deck roughly in half, then let the two piles drop almost card-by-card on top of each other and recombine them. Not only is this one more visually impressive than the overhand method, but it also mixes the cards much more efficiently: in the order of 3/2 log2 n.

That’s a lot quicker than the overhand shuffle. “Rule of thumb is you need about seven,” Fulman said – more than you’re probably doing before every card game, but much fewer than the five-digit number of shuffles needed for the alternative. 

ADVERTISEMENT

“One way to explain it […] is, if a deck is perfectly mixed, you can only guess about four and a half cards correctly,” Fulman explained. “If you do a riffle shuffle once, you can guess over 30 cards; if you do it twice, you can guess over 19 cards, and if you do it three times, you can guess almost 13 cards correctly.”

If that figure seems to be decreasing suspiciously slowly, you’re not exactly wrong – but a neat feature of this result, discovered by mathematicians Dave Bayer and Persi Diaconis back in 1990-ish, is its “cut-off phenomenon”: “the randomization arrives abruptly,” noted a 1999 paper by two mathematicians sharing one name, so that “after 1.4 log2 n shuffles, for large enough n, the deck is nowhere near random.”

What that means in practice is this: if you want to mix those cards properly, you need to do all seven rounds of shuffling. 

“Most people shuffle cards three or four times,” Diaconis told the New York Times back in 1990. “Five times is considered excessive.”

ADVERTISEMENT

But that’s just not enough, he explained; it leaves you with a deck that “is far from random.” It’s only once you reach seven or more riffles that the “distance to randomness” – a mathematical quantity defined by Diaconis and Bayer to describe how well the mix can approximate a random order – falls below ½, making it closer to “random” than to “perfectly ordered”.

Oh – and one caveat here: don’t shuffle the cards too well. We know, it sounds counterintuitive – but if you somehow manage to riffle the deck literally perfectly, then that’s almost as bad as not shuffling at all. Want proof? Try it eight times in a row. You’ll end up exactly where you started.

How random is too random?

Throughout this article, we’ve been assuming that more random is somehow “better” – and mostly, that’s true. If you’re playing cards – and assuming you’re not actually trying to cheat – you want their order to be unpredictable; that’s part of the whole point of the game, usually.

But shuffle your cards too thoroughly, and it seems there’s a sort of uncanny valley effect that takes hold. We’re more used to the idea of computer card games these days, but back in the 1970s, when they were first being introduced, people were outraged – not at the intrusion of the technology, or the bucking of tradition, but because the computers were doing it wrong.

ADVERTISEMENT

At least, that’s what players thought. The more random deals, created by algorithm rather than human hands, threw competitive bridge players for a loop, the New York Times reported back in 1990; used as they were to being able to intuit roughly which cards had been dealt to their rivals, the players were baffled by their sudden disorientation. 

A bridge encyclopedia published around the same time suffered the same backlash. The publishers, Diaconis explained, had “used a computer to figure out odds. For example, given that between my opponents there are seven hearts, what’s the chances that one has four hearts and the other has three?”

It’s precisely the kind of question we’d take for granted using a computer to calculate today – but at the time, it caused a stir. “Some of [the] odds were at variance with expert play,” Diaconis said. “The experts had intuited – correctly – the actual ways the cards were shuffled. People thought the encyclopedia was wrong.”

The moral, then? If you want a random shuffle, choose a riffle, and repeat seven times. But stop after that – or else you might end up burning some bridges. 

Deborah Bloomfield
Deborah Bloomfield

Related posts:

  1. Two people killed after gas blast hits apartment building in Russia -Ifax
  2. Musk Reveals “Optimus” Tesla Robot, But Some Folks Aren’t Impressed
  3. Can You Unlearn A Language?
  4. Divers Thought They’d Found A Shipwreck, But This Giant Shadow Is Alive

Source Link: The Best Way To Shuffle A Deck Of Cards, According To Math

Filed Under: News

Primary Sidebar

  • This Antarctic Glacier Just Broke An Unwanted Record – Fastest Retreat In Modern History
  • New Portuguese Man O’ War Species Discovered After Warming Ocean Currents Push It North
  • Watch Orcas Use “Tonic Immobility” To Suck An Enormous Liver Out Of The World’s Deadliest Shark
  • Ancient Micronesians Hunted Sharks 1,800 Years Ago, And Now We Know Which Species
  • World’s First Plasma “Fireballs” Help Explain Supermassive Black Hole Mystery
  • Why Do We Eat Chicken, And Not Birds Like Seagull And Swan?
  • How To Find Fossils? These Bright Orange Organisms Love Growing On Exposed Dinosaur Bones
  • Strange Patterns In Ancient Rocks Reveal Earth’s Tumbling Magnetic Field, Not Speeding Continents
  • Interstellar Comet 3I/ATLAS Can Now Be Seen From Earth – Even By Amateur Telescopes!
  • For 25 Years, People Have Been Living Continuously In Space – But What Happens Next?
  • People Are Not Happy After Learning How Horses Sweat
  • World’s First Generational Tobacco Ban Takes Effect For People Born After 2007
  • Why Was The Year 536 CE A Truly Terrible Time To Be Alive?
  • Inside The Myth Of The 15-Meter Congo Snake, Cryptozoology’s Most Outlandish Claim
  • NASA’s Voyager Spacecraft Found A 30,000-50,000 Kelvin “Wall” At The Edge Of Our Solar System
  • “Dueling Dinosaurs” Fossil Confirms Nanotyrannus As Own Species, Interstellar Comet 3I/ATLAS Is Back From Behind The Sun, And Much More This Week
  • This Is What Antarctica Would Look Like If All Its Ice Disappeared
  • Bacteria That Can Come Back From The Dead May Have Gone To Space: “They Are Playing Hide And Seek”
  • Earth’s Apex Predators: Meet The Animals That (Almost) Can’t Be Killed
  • What Looks And Smells Like Bird Poop? These Stinky Little Spiders That Don’t Want To Be Snacks
  • Business
  • Health
  • News
  • Science
  • Technology
  • +1 718 874 1545
  • +91 78878 22626
  • [email protected]
Office Address
Prudour Pvt. Ltd. 420 Lexington Avenue Suite 300 New York City, NY 10170.

Powered by Prudour Network

Copyrights © 2025 · Medical Market Report. All Rights Reserved.

Go to mobile version