title: How to use numpy.random.choice in a list of tuples?
body: <p>I need to do a random choice with a given probability for selecting a tuple from a list.</p>
  
  <p>EDIT:
  The probabiliy for each tuple is in probabilit list
  I do not know forget the parameter replacement, by default is none
  The same problem using an array instead a list</p>
  
  <p>The next sample code give me an error:</p>
  
  <pre><code>import numpy as np
  
  probabilit = [0.333, 0.333, 0.333]
  lista_elegir = [(3, 3), (3, 4), (3, 5)]
  
  np.random.choice(lista_elegir, 1, probabilit)
  </code></pre>
  
  <p>And the error is:</p>
  
  <pre><code>ValueError: a must be 1-dimensional
  </code></pre>
  
  <p>How can i solve that?</p>