title: Why is calling `import random; random.random()` throwing a TypeError?
body: <p>I'm new to Python. I wrote a small script to generate ten random float values, but it keeps failing. Here's the script:</p>
  
  <pre><code>import random
  
  for i in range(10):
    x = random.random()
    print x
  </code></pre>
  
  <p>and here's the error message:</p>
  
  <pre><code>TypeError: 'module' object is not callable'.
  </code></pre>
  
  <p>I can't see what the problem is.
  I'm pretty sure random exists!</p>
  
  <p>My version is Python 2.7.6.</p>