title: Randomly shuffle items in each row of numpy array
body: <p>I have a numpy array like the following:</p>
  
  <pre><code>Xtrain = np.array([[1, 2, 3],
                     [4, 5, 6],
                     [1, 7, 3]])
  </code></pre>
  
  <p>I want to shuffle the items of each row separately, but do not want the shuffle to be the same for each row (as in several examples just shuffle column order).</p>
  
  <p>For example, I want an output like the following:</p>
  
  <pre><code>output = np.array([[3, 2, 1],
                     [4, 6, 5],
                     [7, 3, 1]])
  </code></pre>
  
  <p>How can I randomly shuffle each of the rows randomly in an efficient way? My actual np array is over 100000 rows and 1000 columns.</p>