|
Random number generator: msg#00021lang.haskell.glasgow.bugs
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
Do you Yahoo!? Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes_______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@xxxxxxxxxxx http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | ghc 6.2 broken on Win98, Gour |
|---|---|
| Next by Date: | Bug in emptySampleVar, Jan Christiansen |
| Previous by Thread: | ghc 6.2 broken on Win98, Gour |
| Next by Thread: | Bug in emptySampleVar, Jan Christiansen |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |