random module doesn't have randint() function
<p>When I call <code>random.randint()</code>, I get the following error. Can anyone please explain what's happening?</p>

<pre class="lang-none prettyprint-override"><code>$ python 
Python 2.6.6 (r266:84292, Dec 27 2010, 00:02:40) 
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
&gt;&gt;&gt; import random
Traceback (most recent call last):
  File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  File "random.py", line 4, in &lt;module&gt;
    print &gt;&gt;file,random.randint(100,10000)
AttributeError: 'module' object has no attribute 'randint'
&gt;&gt;&gt; random.randint(100)
Traceback (most recent call last):
  File "&lt;stdin&gt;", line 1, in &lt;module&gt;
NameError: name 'random' is not defined
</code></pre>
