Menu
EARLY ACCESS JMaths is in active development — new content added regularly

Mathematics of Card Shuffling

Statistics & Probability

How many shuffles does it take to truly randomize a deck of cards?

Introduction

The Gilbert-Shannon-Reeds model shows that it takes exactly 7 riffle shuffles to randomize a standard 52-card deck. This exploration combines combinatorics, permutations, and statistical analysis. You can investigate different shuffle types (riffle, overhand, pile) and measure randomness using statistical tests. Consider how the total variation distance decreases with each shuffle, or explore the mathematics of card positions through shuffle sequences.

Guiding Questions
  • How can you define and measure 'randomness' mathematically?
  • What is the probability that a specific card ends up in a specific position after n shuffles?
  • How does the shuffle type affect the distribution of cards?
  • Can you model shuffle sequences using permutation matrices?
  • How will you make this more individual because you can't just recreate the maths online
Key Mathematical Concepts
Combinatorics Permutations Probability Statistics
Start Your Exploration
Log in to favorite ideas and create drafts
Log In to Get Started