Mark Dickinson added the comment:
You seem to be confusing `np.random.randint`, which is a function from NumPy
(not part of core Python), with `random.randint` from the standard library.
NumPy's np.random.randint does not include the endpoint. Python's does. As
far as I can tell, the docume
New submission from FH:
Upon inspection, random.randint(a,b) does not include the endpoint b, contrary
to documentation, and contrary to the argumentation in Issue7009.
To see this, run e.g.
sum(np.random.randint(0,1,1000))
which will return 0 repeatedly (statistically very unlikely). I tried