That reminds me of: http://search.dilbert.com/comic/Random%20Number%20Generator
(sorry if this off-topic post offends anyone on this otherwise serious list)
Best regards,
Krzysztof Skrzętnicki
import qualified Data.Vector.Unboxed as U
import System.Random.Mersenne.Pure64
import qualified Data.Vector.Random.Mersenne as G
main = do
h <- newPureMT
let b = G.randoms h 10 :: U.Vector Bool
print b
*Main> main
fromList [True,True,True,True,True,True,True,True,True,True]
_______________________________________________
Libraries mailing list
Libraries@haskell.org
http://www.haskell.org/mailman/listinfo/libraries