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