
2 Mar
2009
2 Mar
'09
4:10 p.m.
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] allbery@kf8nh.com system administrator [openafs,heimdal,too many hats] allbery@ece.cmu.edu electrical and computer engineering, carnegie mellon university KF8NH