title: Python random number generation
body: <p>This is the question I am trying to answer: </p>
  
  <ol>
  <li>In main, generate a random integer that is greater than 5 and less than 13.
  print this number on its own line. - <strong>Done</strong></li>
  <li>Call the makelist function with the random integer as sole argument. - <strong>This confuses me</strong></li>
  <li>Make an empty list inside the makelist function. - <strong>Done</strong></li>
  <li>Use a loop to append to the list a number of elements equal to the random integer argument. All new list elements must be random integers ranging from 1 to 100, inclusive. Duplicates are okay. - <strong>Not Done</strong></li>
  <li>Return the list to main. - <strong>Not Done</strong></li>
  <li>Back in main, catch the returned list and sort it. - <strong>Not Done</strong></li>
  <li>Finally, use a for loop to display the sorted list elements, all on one line, separated by single spaces. - <strong>Not Done</strong></li>
  </ol>
  
  <p>This is what I have so far: </p>
  
  <pre><code>import random
  
  def main():
      number = random.randint(6, 12)
  
  print('the number is', number)
  
  
  def makelist():
      numbers = random.randint(1, 100)
      empty_list = []
      empty_list.append(numbers)
  </code></pre>
  
  <p>I am having trouble trying to understand the loops/append part...could someone give me some guidance? Thanks.</p>