title: how do you generate 20 random numbers in python
body: <p>I'm trying to generate 20 random numbers in python and say whether they are odd or even, this is what I have so far:</p>
  
  <pre><code>import random
  
  def main():
  
      i = 0
      num = 0
  
      #while loop
      while i&lt;20:
  
         #user enters input
          num = random.randint(input("enter lowest number:\t"))
          i = random.randint(input("enter highest number:\t"))
  
          #if else
          if num&gt;=0 and num&lt;=100:
  
              num = num+i
  
              i = i +1
  
              print(num)
  
          else:
              print("error")
  
          #for loop
          for i in range(num):
  
  
  main()
  </code></pre>
  
  <p>would someone be able to help me finish it as I'm completely lost</p>
  
  <p>here is the question:</p>
  
  <p>Write a program which generates 20 random integers and indicates whether each number is odd or even.  The program should begin by asking the user to input two integers which will act as the range for the generation of 20 random integers. </p>