Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import Control.Monad.State
- random :: State Int Int
- random = state $ \x ->
- let y = (x+11) `mod` 17
- in (y,y)
- random3 = do
- x <- random
- y <- random
- z <- random
- return (x,y,z)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement