<div>Hi,</div>
<div> </div>
<div>I suspect I&#39;ve found a documentation error in the above mentioned link (<a href="http://docs.python.org/library/random.html">http://docs.python.org/library/random.html</a>); regarding random.randint(a, b), the documentation says &quot;Return a random integer N such that a &lt;= N &lt;= b&quot;, however when actually using the function, it does seem to be a &lt;= N &lt; b.</div>

<div> </div>
<div>Running Python 2.6, the built-in help returns</div>
<div> </div>
<div>Type:           builtin_function_or_method<br>Base Class:     &lt;type &#39;builtin_function_or_method&#39;&gt;<br>String Form:    &lt;built-in method randint of mtrand.RandomState object at 0x01466<br>340&gt;<br>Namespace:      Interactive<br>
Docstring:<br>    randint(low, high=None, size=None)</div>
<div>Return random integers from `low` (inclusive) to `high` (exclusive).</div>
<div>Return random integers from the &quot;discrete uniform&quot; distribution in the<br>&quot;half-open&quot; interval [`low`, `high`). If `high` is None (the default),<br>then results are from [0, `low`).</div>
<div> </div>
<div>which kind of hints that it should be &quot;&lt;&quot;.</div>
<div> </div>
<div>Best regards</div>
<div>Kristoffer Lundgren</div>