[Haskell-cafe] Problem with System.Random.randoms

2008-12-07 Thread S. Günther
Hi, I have a small problem with System.Random.randoms. I need a rather large number of random numbers but the following program consumes a huge amount of memory. I terminated it when it used up more than 2 Gb: module Main where import System.Random n :: Int n = maxBound main = do g -

Re: [Haskell-cafe] Problem with System.Random.randoms

2008-12-07 Thread Luke Palmer
2008/12/7 S. Günther [EMAIL PROTECTED] Hi, I have a small problem with System.Random.randoms. I need a rather large number of random numbers but the following program consumes a huge amount of memory. I terminated it when it used up more than 2 Gb: module Main where import System.Random