New submission from wolfganglechner <[email protected]>: 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 <[email protected]> <https://bugs.pypy.org/issue1725> ________________________________________ _______________________________________________ pypy-issue mailing list [email protected] https://mail.python.org/mailman/listinfo/pypy-issue
