On Mon, 5 Nov 2007, Andrew Coppin wrote: > randList :: Int -> IO [Int] > randList n = mapM (\x -> randomRIO (0, randMax)) [1..n]
replicateM n (randomRIO (0, randMax)) but it is certainly better to use randomR and wrap it in a State monad _______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
