Python: why does `random.randint(a, b)` return a range inclusive of `b`?
- by David Wolever
It has always seemed strange to me that random.randint(a, b) would return an integer in the range [a, b], instead of [a, b-1] like range(...).
Is there any reason for this apparent inconsistency?