Code review for adding axis argument to permutation and shuffle function
I would like to request a code review. The random.permutation and
random.shuffle functions now can only shuffle along the first axis of a
multi-dimensional array. I propose to add an axis argument for the
functions and allow them to shuffle along a given axis. Here is the link
to the PR (https://github.com/numpy/numpy/pull/13829).