title: random 'module' object has no attribute 'randit'; random.__file__ directs to right module in library frameworks; other solutions have not worked
body: <p>i've looked at other threads looking at the same problems and the solutions suggested there have not worked</p>
  
  <p>whenever i try to execute this code i get this</p>
  
  <pre><code>import random
  print random.randit(0,5)
  AttributeError: 'module' object has no attribute 'randit'
  </code></pre>
  
  <p>to see if there was a file that was named random before it reaches the correct random.py i did</p>
  
  <pre><code>random.__file__
  </code></pre>
  
  <p>which gave me this readout</p>
  
  <pre><code>'/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/random.pyc'
  </code></pre>
  
  <p>I went to that folder and checked out random.py and confirmed that it has the function randit;</p>
  
  <p>i've tried moving my code so that my working directory is in the python2.5/random.pyc directory and it still does not work. 
  i've tried moving the random.py from framework library into my working directory of my code and it is not working; i checked the random.<strong>file</strong> after doing so and it does not switch to  the current working directory that contains a copy of the random.py from frameworks</p>
  
  <p>furthermore, i have tried reinstalling python as well which did not change anything</p>
  
  <p>this code was working before, but when I tried to run that line in a bigger set of code that wasn't exporting any files and is not named random, thats when I stopped being able to run the random.randit function even in a completely new .py file in a completely new working directory</p>
  
  <p>lastly, i've tried importing the math module and that module works fine</p>
  
  <p>does anyone have any suggestions for what else I can do to troubleshoot this?</p>