[Haskell-cafe] Random Number

Krzysztof Skrzętnicki gtener at gmail.com
Sun Jun 7 15:55:58 EDT 2009

On Sun, Jun 7, 2009 at 21:33, ptrash<ptrash at web.de> wrote:
> Hi,
> is the are way (or a build in method) in haskell to get a random number from
> a number bottom to a number top?
> Something like
> let randomNumber = random 1 30
> to get a random number between 1 and 30.

I don't mean to be rude, but did you even tried to read the
documentation? The function you want is here:

Before you ask any other questions please read this essay:

Best regards

Krzysztof Skrzętnicki

More information about the Haskell-Cafe mailing list