[Tutor] random floats in a range greater than 0.0-1.0
Wed, 13 Feb 2002 17:05:27 -0700
Danny Yoo wrote:
> I think scaling would be the way to go on this one. I can't think offhand
> of a function in the random module that will do this, but cooking up such
> a function should be too bad.
> This sounded like a fun problem, so I've cooked up such a function.
random.uniform(50.0, 128.0) also works, but of course it's not nearly as
much fun. :-)
Paul Sidorsky Calgary, Canada