title: Python random variable not working
body: <p>Im creating a text based game and I want to implement a fallout 4 'wasteland' system. I figured that a good way to keep everything random was to make a <code>random.randint(1,10)</code> function and some if statements for every number that comes out. The problem is that when I randomise the variable, the number stays the same. Here's my code(here is a test sample of my programme thought I wouldnt need all of it):</p>
  
  <pre><code>import random
  
  def randomA():
      return random.randrange(1,5)
  
  global rollA
  rollA = randomA()
  alive = True
  while alive == True:
      p = input("Type w")
  rollA
  
  if p == "w":     
      print(rollA)
  </code></pre>