[Haskell-cafe] On the purity of Haskell
Никитин Лев
leon.v.nikitin at pravmail.ru
Thu Dec 29 20:55:16 CET 2011
If seed depends of psudo random event, for example of current systime,
we must use IO action.
30.12.2011, 02:47, "Steve Horne" <sh006d3592 at blueyonder.co.uk>:
>
> 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
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
More information about the Haskell-Cafe
mailing list