November 2009
4 posts
4 tags
Randoms and Haskell
Right now I’m on chapter 15 of my RWH book. This one talks about problems that get complicated without the use of a Monad, one of them is the System.Random API of Haskell. I’m going to start by introducing two typeclasses that this module exports for clarity’s sake:
RandomGen: a RandomGen represents an state that holds the random input, I like to think of it like a stream of...