<div>Hi,</div>
<div> </div>
<div>I suspect I'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 "Return a random integer N such that a <= N <= b", however when actually using the function, it does seem to be a <= N < 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: <type 'builtin_function_or_method'><br>String Form: <built-in method randint of mtrand.RandomState object at 0x01466<br>340><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 "discrete uniform" distribution in the<br>"half-open" 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 "<".</div>
<div> </div>
<div>Best regards</div>
<div>Kristoffer Lundgren</div>