title: random.randint error
body: <p>I have some code that looks something like this:</p>
  
  <pre><code>import random
  
  n = 0
  while n &lt;= 50:
    n = n+1
    a = random.randint(1, 16)
    b = random.randint(1, 5)
    print n, ". ", a, "-", b, "= "
  </code></pre>
  
  <p>For some reason, when running it, I get the following error: <code>AttributeError: 'module' object has no attribute 'randint'</code>. However, I have no problems when running the same random.randint queries in IDLE. How can I fix this?</p>