SciSharp / NumSharp

High Performance Computation for N-D Tensors in .NET, similar API to NumPy.
https://github.com/SciSharp
Apache License 2.0
1.34k stars 187 forks source link

np.random.choice with replace: false produces duplicates #490

Open GThibeault opened 1 year ago

GThibeault commented 1 year ago

e.g. np.random.choice(71, new Shape(40), replace: false) is producing duplicates.

I've tried setting the seed to provide a reproducible example, but that doesn't seem to work either.