[Tutor] Need help with random numbers

kevin parks kp87@lycos.com
Tue, 17 Jul 2001 18:23:20 +0900


Since it has be brought up, I'd like to know:

random.random() takes no args and returns a float in the range 0.0-1.0. How would you return random floats of a different range? say: 1.0 - 12.0?

random() 
       Return the next random floating point number in the range [0.0, 1.0). 

cheers,

kevin parks
seoul, korea




Get 250 color business cards for FREE!
http://businesscards.lycos.com/vp/fastpath/