jeudi 9 novembre 2017

haskell why is System.Random in a monad

I have a short question. Can someone tell me the reason why the RNGs from System.Random are in a monad? I understood, that monads are used to combine functions, but why is it necessary to put the RNG in the monad?




Aucun commentaire:

Enregistrer un commentaire