title: python random in lists
body: <p>This is my current code:</p>
  
  <pre><code>import random
  
  while True:
      try:
          num   = int(input("Enter the total number of digits you want to generate:"))
          upper = int(input("Enter your highest number:"))
          lower = int(input("Enter your lowest number:"))
  
          if upper &lt; 1 or lower &lt; 1 or upper &lt;= lower:
              print ("Sorry, invalid. Make sure your upper bound is higher than lower bound, make sure all numbers are integers greater than 0.")
              continue
  
          if num &lt; 1:
              print ("Sorry, invalid. Try again.")
              continue
  
          **mylist = [0] * num
          for x in range (lower, upper):**
  </code></pre>
  
  <p>The part directly above here is the part that I am not quite sure how to go forward on. I want to generate random numbers depending on the number the user enters and within the upper and lower bounds that the user enters into a list that displays here. Can someone guide me through this? thank you!          </p>
  
  <pre><code>except:
      print ("Sorry, invalid. Try again.")
  
  else:
      print ("Thank you.")
      break
  </code></pre>