title: How would i generate a new random number
body: <pre><code>import random
  guess = '0'
  while (guess) != 'exit':
      answer = random.randrange(1,100)
      answer = str(answer)
      guess = input('Enter a number between 1 and 100 or enter exit to exit: ')
      if not guess.isdigit(): 
          if guess == "exit":
              print('Game closed')
              break
          else:
              print('Your guess was not a digit, try again')
      guess = (guess)
      if guess == answer:
          print('Correct')
      elif guess &gt; answer :
          print('Too high, try again')
      elif guess &lt; answer :
          print('Too low, try again')
  </code></pre>
  
  <p>how would i get this to generate a new random number after you guess the correct answer</p>