title: randomly selecting items from an array python
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/306400/how-do-i-randomly-select-an-item-from-a-list-using-python">How do I randomly select an item from a list using Python?</a>  </p>
  </blockquote>
  
  
  
  <p>I have two arrays pool_list_X , pool_list_Y. Both have a numpy array as element in the list.
  So basically </p>
  
  <pre><code>pool_list_x[0] = [1 2 3 4] # a multidimensional numpy array.
  </code></pre>
  
  <p>and every element of pool_list_x has corresponding element in pool_list_y</p>
  
  <pre><code>which is to say, that pool_list_x[i] corresponds to pool_list_y[i]
  </code></pre>
  
  <p>Now. if I have to randomly select 10 elements from list_x (and hence the corresponding elements to list_y). how do i do this.
  I can think of a very naive way.. randomly generate numbers. and stuff.. but that is not very efficient.. what is the pythonic way to do this.
  Thanks</p>