title: If statement to control user input
body: <p>The code given works fine but not with the original code.
  I would like the code to offer a number 1 through 5 and only accept a number 1 through 5.
  The number choosen Within range would still return random integers.</p>
  
  <pre><code>import random
  
  user_input = raw_input("Enter a number between 1 and 5 : ") 
  selected_elem = []
  
  while len(selected_elem) &lt; int(user_input):
      if user_input &gt;= int(6):
          print ("That is not an option...")
      random_elem = random.randrange(1, 10, 1)
      if random_elem not in selected_elem:
          selected_elem.append(random_elem)
  
  print ("Here are the numbers... ")+ str(selected_elem)
  </code></pre>