Posts tagged math
Card Shuffling in Python

After my husband had a particularly lucky run with a new deck earlier this year, we started talking about the rules of shuffling. We had both heard that 7 shuffles was the minimum amount of shuffles required to thoroughly shuffle a deck, but neither of us knew if this was a proven fact or an old wives tail.

We also argued about whether it was even possible to quantify a deck of shuffled cards. How do you define shuffledness and more importantly, how do you measure it?

Read More