still random number problem

2002-07-24 Thread Junjie Xu
Hi there, First of all, I would say thank you very much for all who helped me during the past days. Since I am a beginner , sometime I spent even several hours to solve a very simple problem.So, I still need your help in the future. The problem is:

Need help

2002-07-23 Thread Junjie Xu
Hi there, I found I can't generate a random float number(between 0 to 1) use the following method. * module Main where import System(getArgs) import Random uni :: Float uni = head (randoms g) where g = mkStdGen 77