[pypy-issue] [issue1725] numpy randint interval

wolfganglechner tracker at bugs.pypy.org
Mon Mar 31 17:58:21 CEST 2014


New submission from wolfganglechner <wolfgang.lechner at gmail.com>:

In python, numpy.random.randint(N) produces a number between 0 and N-1, in pypy 
a number between 0 and N including N. 

expceted bahavior:
>>> import numpy as np
>>> for i in range(100):
...     print np.random.randint(2)
1
0
1
1
1
0
1
1
...

actual behavior:
>>> import numpy as np
>>> for i in range(100):
...     print np.random.randint(2)
0
1
2
...

----------
messages: 6673
nosy: pypy-issue, wolfganglechner
priority: bug
status: unread
title: numpy randint interval

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1725>
________________________________________


More information about the pypy-issue mailing list