Closed stoprightthere closed 1 year ago
Hey @stoprightthere ! Thanks for raising this, and I'm sorry for the slow reply. Been away on holiday and to a conference, and I'm only now catching up on email.
Ouch, this is an extremely embarassing bug. This is definitely not the intended behaviour. I will look into it!
This should be fixed on the latest release v1.5.4
. I've added a test that explicitly checks your above example.
Hey @wesselb , thanks for fixing the issue!
The implementation of
lab.numpy.random.randcat
is incorrect.Example
Expected output:
array([0])
Got output:array([3])
Suggested fix: use
np.random.choice
.