dibgerge opened a new issue #19423:
URL: https://github.com/apache/incubator-mxnet/issues/19423


   ## Description
   
   When using `np.random.choice(num, size=num, replace=False)`, where `num` is 
the same for the input array, and size of output array, then I am always 
getting a sorted array, i.e. same as `np.arange(num)`. 
   
   The expected output is to have a shuffled version of `np.arange(num)`. This 
is the behavior of native numpy. 
   
   
   ## To Reproduce
   
   ```python
   from mxnet import np
   import numpy as npy
   
   np.random.choice(10, size=10, replace=False)
   
   # array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9], dtype=int64)
   
   npy.random.choice(10, size=10, replace=False)
   
   # array([7, 3, 0, 1, 5, 4, 9, 8, 6, 2])
   
   ````
   
   ## Environment
   
   Mxnet 1.7


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to