[Tutor] random floats in a range greater than 0.0-1.0
Thu, 14 Feb 2002 00:01:00 -0800 (PST)
On Wed, 13 Feb 2002, Paul Sidorsky wrote:
> 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. :-)
Ah. *grin* Thanks for the correction.