title: Python: AttributeError: 'module' object has no attribute 'randrange'
body: <p>I know this could be caused by having a self-defined python file called random.py. I have searched for it, there is not file with such names, also there are no "pyc" file with this name.</p>
  
  <p>I've also tried it by just typing the command in the terminal, and it seems to work! But it doesnt work when I try to compile the file!</p>
  
  <p>Any idea what the problem might be?</p>
  
  <p>Thanks!</p>
  
  <pre><code>import csv
  import random
  from numpy import *
  from scipy.stats import norm
  
  ....
  
  index = random.randrange(length)
  
  ...
  </code></pre>