This post originated from an RSS feed registered with Scala Buzz
by David MacIver.
Original Post: Monadic card shuffling
Feed Title: David R. MacIver
Feed URL: http://www.drmaciver.com/?feed=rss
Feed Description: Miscellaneous ramblings about programming and software engineering. Common themes include Scala, Java and Haskell.
Because it's what all the cool kids do, this is a post in literate Haskell. Assuming wordpress doesn't screw things up too horribly, you should just be able to cut and paste it into your text editor and compile it.
How do you shuffle a pack of cards?
Easy. Throw it up ...