title: How do you create a random list of integers, but exclude a certain number?
body: <p>I'd like to create a random list of numbers in python, but exclude a certain number, k.</p>
  <p>I can create a random list of integers:
  <code> l = [random.randint(0,10) for i in range(5)]</code>
  Then I can remove the number, k, if it's there, and add another random number in the range, but this seems like too many steps.</p>
  <p>In researching this, It's quite easy to find out how to create a random number from a range and exclude a certain number, for example:
  <code>print (choice([i for i in range(0,9) if i not in [2,5,7]]))</code>
  I could do this the amount of times I need to create the array -- but this seems more complex than necessary.</p>
  <p>Would appreciate some feedback this</p>