title: How to update variable with random.randint in python?
body: <p>I have some code for a GA, that starts like this</p>
  
  <pre><code>import random
  
  #
  # Global variables
  # Setup optimal string and GA input variables.
  
  
  POP_SIZE    = random.randint(100,200) 
  
  # random code that doesn't really matter...
  
  # Simulate all of the generations.
    for generation in xrange(GENERATIONS):
      print "Generation %s... Random sample: '%s'" % (generation, population[0])
      print POP_SIZE 
      weighted_population = []
  </code></pre>
  
  <p>The important part is <code>print POP_SIZE</code>.</p>
  
  <p>It prints what it needs to, and then the <code>POP_SIZE</code> stays the same, but is randomized 
  ONLY if I exit the program and start it up again.</p>
  
  <p>I want it to vary betweeen the paramaters I set at the beginning, which was</p>
  
  <pre><code>POP_SIZE    = random.randint(100,200)
  </code></pre>
  
  <p>Thoughts?</p>