random function

Darrell news at dorb.com
Wed Nov 10 16:16:14 EST 1999


Python Library Reference
random ()
Returns the next random floating point number in the range [0.0 ... 1.0).

>>> import random
>>> random.random()
0.981053289833
>>>

--
--Darrell
Olivier Roche <olivier at scripps.edu> wrote in message
news:3829D78B.7FC142F4 at scripps.edu...
> Hi everybody
>
> By looking at the index of the python documentation index i haven't seen
> any
> random function description. Could somebody tell me if a random function
>
> to generate random number (between 0 and 1) exists ?
>
> Thanks,
>
> Olivier
>
>
> --
> http://www.python.org/mailman/listinfo/python-list






More information about the Python-list mailing list