[Numpy-discussion] Request for enhancement to numpy.random.shuffle

Stefan van der Walt stefan at sun.ac.za
Sun Oct 12 04:56:43 EDT 2014

Hi Warren

On 2014-10-12 00:51:56, Warren Weckesser <warren.weckesser at gmail.com> wrote:
> A small wart in this API is the meaning of
>   shuffle(a, independent=False, axis=None)
> It could be argued that the correct behavior is to leave the
> array unchanged.

I like the suggested changes.  Since "independent" loses its meaning
when axis is None, I would expect this to have the same effect as
`shuffle(a, independent=True, axis=None)`.  I think a shuffle function
that doesn't shuffle will confuse a lot of people!


More information about the NumPy-Discussion mailing list