If seed depends of psudo random event, for example of current systime,
we must use IO action.

30.12.2011, 02:47, "Steve Horne" <[email protected]>:

>
> BTW - why use an IO action for random number generation? There's a
> perfectly good pure generator. It's probably handy to treat it
> monadically to sequence the generator state/seed/whatever but random
> number generation can be completely pure.
>
> _______________________________________________
> Haskell-Cafe mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/haskell-cafe

_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to