title: NameError: name 'randint' is not defined
body: <pre><code>options = [ "Choice 1: 1-9", "Choice 2: 10- 100",  ]
  button = buttonbox ( msg = "Choose your range of numbers", title = "Select number range", choices = options)
  
  if button == "Choice 1: 1-9":
   from random import randint
  rn1 = randint(30,50)
  from random import randint
  rn2 = randint(30,50)
  
  options = [ "Close"]
  buttonbox ( msg = "%s X %s = ___" % (rn1, rn2), title = "Select number range", choices = options)
  if button == "Choice 2: 10- 100":
   from random import randint
  rn2 = randint (10,100)
  from random import randint
  rn2 = randint (10,100)
  options = [ "Close"]
  buttonbox ( msg = "%s X %s = ___" % (rn1, rn2), title = "Select number range", choices = options)
  </code></pre>
  
  <p>This is my code, when I try and run the second choice, it says <code>NameError: name 'randint' is not defined</code> even though the code is exactly the same as the first option, but with different numbers.</p>
  
  <p>Any suggestions?</p>