[Haskell-beginners] uses of random number generators

Brandon S. Allbery KF8NH allbery at ece.cmu.edu
Fri Jul 24 01:42:48 EDT 2009


On Jul 24, 2009, at 01:35 , Michael P Mossey wrote:
> Can I get a few examples or pointers? I believe I will have to run  
> this in a State monad or the IO monad, will I not?


IO is only needed to get an initial seed.  The standard random number  
functions are designed for use with State, but you might also want to  
look at http://hackage.haskell.org/package/MonadRandom .

-- 
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university    KF8NH


-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
Url : http://www.haskell.org/pipermail/beginners/attachments/20090724/8e8d82cb/PGP.bin


More information about the Beginners mailing list