Lehmer Random Number Generator in Haskell