Random doubles

andrew@andrewcooke.free-online.co.uk andrew@andrewcooke.free-online.co.uk
Wed, 14 Feb 2001 16:25:04 +0000


Could someone please post a fragment of code that builds a list of
random Doubles using RandomIO (recursively, please, although an
example of using the interface that gives lists of random values
directly would also be interesting)?

ie Int -> IO [Random]

Sorry - I've searched the web but can't find an example.  I can get
integers, but I don't udnerstand how to get Doubles.  I've stared at
the Library docs, but am missing something obvious, I guess.

Thanks very much,