title: Changing random number in python
body: <pre><code>import random
  
  def guess_number_game():
  
  number = random.randint(1, 101)
  
  points = 0
  
  print('You already have ' + str(points) + ' point(s)')
  
  playing = True
  
  while playing:
  
  
      guess = int(input('Guess the number between 1 and 100: '))
  
      if guess &gt; number:
          print('lower')
      elif guess &lt; number:
          print('Higher')
      else:
          print('You got it, Good job!!')
          playing = False
          points += 1
          play_again = True
  
      while play_again:
  
          again = input('Do you want to play again type yes/no: ')
  
          if again == 'yes':
              playing = True
              play_again = False
          elif again == 'no':
              play_again = False
          else:
              print('please type yes or no')
  print('Now you have ' + str(points) + ' point(s)')
  
  
  
  
  guess_number_game()
  </code></pre>
  
  <p>i just started to learn python and i made this simple number guessing game, but
  if you try to play again you get the same number.</p>
  
  <p>e.g. the number is 78 and you guessed it but you want to play again so you say you want to play again the number is still 78.</p>
  
  <p>so how do i make it so that the number changes everytime someone plays the game</p>