I was curious about how you could tell if a deck was shuffled enough after a game, so I wrote some code to try to quantify this.  I didn't get all that far, though.