[Tutor] Re: random floats in a range greater than 0.0-1.0

kevin parks kp87@lycos.com
Thu, 14 Feb 2002 16:21:05 +0900

>>> random.uniform(x, y) 

Works great as doesn Danny's scaling mechanism. Scaling was how i did it in 'that other programming language' so i was really shocked to see that the random module has so much in it. Python really does come with the batteries included.



Love is in the Air!

Check out Cupid School where you will learn from Matchmaker's
best and brightest.

At Cupid School you'll learn how to pair up hopeful romantics
with one another, based on their personal preferences.
If you do well- you'll be rewarded with your own
set of love bow and arrows!

Good Luck!