Related: <a href="http://news.ycombinator.com/item?id=966243" rel="nofollow">http://news.ycombinator.com/item?id=966243</a> (uses some of the same probabilistic models and rising sequences)<p>I also wrote a simple javascript card-shuffling library based on these models after reading the davidson.edu article: <a href="http://jazzychad.com/js/deck.php" rel="nofollow">http://jazzychad.com/js/deck.php</a>