[Haskell-cafe] Random Number
hiena03 at gmail.com
Sun Jun 7 15:55:35 EDT 2009
look in System.Random
randomRIO :: (Random a) => (a, a) -> IO a
you can do
On Sun, Jun 7, 2009 at 3:33 PM, ptrash <ptrash at web.de> wrote:
> is the are way (or a build in method) in haskell to get a random number
> a number bottom to a number top?
> Something like
> let randomNumber = random 1 30
> to get a random number between 1 and 30.
> View this message in context:
> Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe