random() in python

Posted by Arkapravo on Stack Overflow See other posts from Stack Overflow or by Arkapravo
Published on 2010-04-12T09:44:17Z Indexed on 2010/04/12 9:53 UTC
Read the original article Hit count: 416

Filed under:
|
|

In python the function random() generates a random float uniformly in the semi-open range [0.0, 1.0). In principle can it ever generate 0.0 (i.e. zero) and 1.0 (i.e. unity)? What is the scenario in practicality?

© Stack Overflow or respective owner

Related posts about random

Related posts about python