title: Random choice out of 1D array with 2-dimensional probability in python
body: <p>I would like to choose randomly out of a list with 3 elements (HGA, CGA, SGA), but I have 3 lists with the probabilities in it.</p>
  <p>My probabilities are given by (the lists have the same length):</p>
  <pre><code>Probs = { 'HGA':prob['HGA'], 'CGA':prob['CGA'], 'SGA':prob['SGA'] }
  </code></pre>
  <p>with prob looking like this:</p>
  <pre><code>prob['HGA']=[0.5,0.2,0.4,0.6, ...]
  </code></pre>
  <p>and now I want to create another list which should look something like this without using a loop:</p>
  <pre><code>particles = ['HGA', 'CGA', 'CGA', 'CGA', 'SGA' ...]
  </code></pre>
  <p>The length of 'particles' should obviously have the same length as the probabilities.</p>