[issue7009] random.randint docs

2009-09-27 Thread Senthil Kumaran
Senthil Kumaran 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.

[issue7009] random.randint docs

2009-09-27 Thread James G. sack (jim)
New submission from James G. sack (jim) : Docs for 2.6.2 (http://docs.python.org/library/random.html? highlight=random#module-random) presently say """ random.randint(a, b) Return a random integer N such that a <= N <= b. """ It should say ...a <= N < b I wonder if there are other mistakes ther