title: multiplication game python
body: <p>I am supposed to write a program in python that asks the user how many multiplication questions they want, and it randomly gives them questions with values from 1 to 10. Then it spits out the percentage they got correct. My code keeps repeating the same set of numbers and it also doesn't stop at the number the user asked for. Could you tell me what's wrong?</p>
  
  <pre><code>import random
  import math
  
  gamenumber = int(input("How many probems do you want?\n"))
  num_1 = random.randint(1,10)
  num_2 = random.randint(1,10)
  
  def main():
  
      random.seed()
      count = 0
      while count &lt; gamenumber:
          guess = int(input("What is " + str(num_1) + "x" + str(num_2) + "."))
  
          answer = str(num_1*num_2)
          correct = guess == answer
  
          if guess == answer:
              print("Correct!")
          else wrong:
              print("Sorry, the answer is", answer, ".")
  
          result = correct/wrong   
  
      print("You got ", "%.1f"%result, "of the problems.")
  
  main()
  </code></pre>