title: Generate random number in range excluding some numbers
body: <p>Is there a simple way in Python to generate a random number in a range excluding some subset of numbers in that range?</p>
  
  <p>For example, I know that you can generate a random number between 0 and 9 with:</p>
  
  <pre><code>from random import randint
  randint(0,9)
  </code></pre>
  
  <p>What if I have a list, e.g. <code>exclude=[2,5,7]</code>, that I don't want to be returned?</p>