Resolving copy-paste issue in .cabal file
Using Word32 instead of Word8
Changing type of state transformation function

* State transformation function now takes function for generating random
  number as it's argument. It's now also a monadic function.
* Output condition takes last state as an argument.