[Haskell-cafe] Random Number

michael rice nowgate at yahoo.com
Sun Jun 7 17:47:32 EDT 2009


Good essay.

Try this one for a laugh:


http://www.mcs.vuw.ac.nz/comp/Publications/CS-TR-02-9.abs.html


A good place to begin is PDF pg. 19.

Michael


--- On Sun, 6/7/09, Krzysztof Skrzętnicki <gtener at gmail.com> wrote:

From: Krzysztof Skrzętnicki <gtener at gmail.com>
Subject: Re: [Haskell-cafe] Random Number
To: "ptrash" <ptrash at web.de>
Cc: haskell-cafe at haskell.org
Date: Sunday, June 7, 2009, 3:55 PM

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:
http://www.haskell.org/ghc/docs/latest/html/libraries/random/System-Random.html

Before you ask any other questions please read this essay:
http://mattgemmell.com/2008/12/08/what-have-you-tried

Best regards

Krzysztof Skrzętnicki
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe at haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20090607/68f21bd9/attachment.html


More information about the Haskell-Cafe mailing list