title: AttributeError when importing random
body: <p>I'm having some issues importing random into my python program. I've read through other threads on this topic and for others, it seemed to stem from the file being named random.py. </p>
  
  <p>My file is not named random.py. I have used print(random.<strong>file</strong>) to see where it is importing from, and it seems to be importing from C:\Python27\lib\random.pyc</p>
  
  <p>I have tried moving that file out of the folder and it still does not work. </p>
  
  <p>Here is the error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "C:/Python27/Projects/Test.py", line 4, in &lt;module&gt;
      r1 = random.randomint(20,400)
  AttributeError: 'module' object has no attribute 'randomint'
  </code></pre>
  
  <p>I have also tested in both powershell and the interpreter.</p>
  
  <p>Here is the code snippet:</p>
  
  <pre><code>import random
  import getpass
  
  r1 = random.randomint(20,400)
  r2 = random.randomint(20,400)
  p = getpass.getpass(prompt='Please enter the correct value: %d * %d: ' %(r1,r2))
  
  if p == (r1*r2):
      print "Correct"
  else:
      print "Incorrect"
  </code></pre>
  
  <p>Can anyone help me out?</p>
  
  <p>Edit: I'm an idiot. Thanks.</p>