-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Generate vectors filled with high quality pseudorandom numbers -- -- Generate vectors filled with high quality pseudorandom numbers @package vector-random @version 0.1 module Data.Vector.Random.Mersenne -- | Return a random vector of length n, filled with random -- elements of type a generated by the mersenne-twister. -- -- E.g. to compute the sum of 100 million random Double values in a -- vector: -- --
--   import qualified Data.Vector.Unboxed as U
--   import System.Random.Mersenne
--   import qualified Data.Vector.Random.Mersenne as G
--   
--   main = do
--       g <- newMTGen Nothing
--       a <- G.random g 10000000 :: IO (U.Vector Double) -- 100 M
--       print (U.sum a)
--   
random :: (MTRandom a, Vector v a) => MTGen -> Int -> IO (v a)