Question About Random Module

Glynn Clements glynn.clements@virgin.net
Wed, 25 Dec 2002 10:09:15 +0000


Cesar Augusto Acosta Minoli wrote:

> <P>Hello! I just Wanna Know, What should I do, to build a List of
> random Numbers, without&nbsp; IO type, just Float or Int</P>

Use randoms or randomRs in conjunction with either mkStdGen or your
own instance of RandomGen, all from the Random module.

You only get an IO monad from randomIO and randomRIO or if you use the
"global" RNG (getStdGen, getStdRandom etc).

-- 
Glynn Clements <glynn.clements@virgin.net>