title: Swap two values in a numpy array.
body: <p>Is there something more efficient than the following code to swap two values of a numpy 1D array?</p>
  
  <pre><code>input_seq = arange(64)
  
  ix1 = randint(len(input_seq))
  ixs2 = randint(len(input_seq))
  
  temp = input_seq[ix2]
  input_seq[ix2] = input_seq[ix1] 
  input_seq[ix1] = temp
  </code></pre>