[issue7009] random.randint docs

Senthil Kumaran report at bugs.python.org
Mon Sep 28 06:37:26 CEST 2009


Senthil Kumaran <orsenthil at gmail.com> added the comment:

Not actually a bug. The documentation is correct.
Do, random.randint(0,1) a couple of times and you see 1 appearing.
If still not convinced, look into the random.py see that randint(a, b)
actually does a return self.randrange(a, b+1)

----------
nosy: +senthil.kumaran
resolution:  -> invalid
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7009>
_______________________________________


More information about the Python-bugs-list mailing list