Random number generator

Gwoing Yu gwoing_yu at yahoo.com
Wed Jan 14 23:25:09 EST 2004


Hi,
 
I need some assistances in calling random number generator using 6.0.1 haskell compiler. To return a list of random int [Int], I have tried  the following:
 
drawInt :: Int->Int -> [Int]
drawInt x y =  getStdRandom (randomRs (x,y))
 
It has a type error. I would appreciate if you know how to fix it.
 
Thank you in advance.
 
Tina Yu
http://www.improvise.ws




---------------------------------
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://haskell.org/pipermail/glasgow-haskell-users/attachments/20040114/9bb3a6f7/attachment.htm


More information about the Glasgow-haskell-users mailing list