[Haskell-cafe] Mutable data within a (non-IO) monad

Bryan O'Sullivan bos at serpentine.com
Mon Oct 5 17:55:47 EDT 2009


On Sat, Oct 3, 2009 at 1:57 AM, Duncan Coutts
<duncan.coutts at googlemail.com>wrote:

>
> Internally, each time you demand the next random number, it is mutating
> the internal ST array.


This is the same thing that the Statistics.RandomVariate code in the
statistics package does, and it can be very fast:
http://www.serpentine.com/blog/2009/09/19/a-new-pseudo-random-number-generator-for-haskell/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20091005/023c4880/attachment.html


More information about the Haskell-Cafe mailing list