On 2009 Mar 2, at 9:18, friggin friggin wrote:
Also, is the second argument to shuffle supposed to eb random numbers, ie the function should be used in the IO Monad?


If you want random numbers you will usually fmap this function over a list of random numbers generated in IO, thus isolating the pure algorithm from the impure generation.

--
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] [email protected]
system administrator [openafs,heimdal,too many hats] [email protected]
electrical and computer engineering, carnegie mellon university    KF8NH


Attachment: PGP.sig
Description: This is a digitally signed message part

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

Reply via email to