Where does the text that is invoked by print random.random.__doc__
live?
FWIW, I've read the docs page: https://docs.python.org/2/library/random.html
and understand the interval notation and help()
but reading through C:\Python27\Lib\random.py
I don't find the doc string: random() -> x in the interval [0, 1).
Where is the file this text is printed from?
BorrajaX's answer made me think it might be in os.py, but I couldn't even find urandom in os.py and after reading this:
https://docs.python.org/2/library/os.html#os.urandom
I figure that os.py isn't the place to look.