title: What is the difference between FROM random IMPORT* and IMPORT random? (random() and randrange())
body: <p>In the book has been this codesample:</p>
  
  <pre><code>from random import*
  for i in range(15):                     
          print random.randrange(3,13,3)
  </code></pre>
  
  <p>And it have got result in the book.</p>
  
  <p>But when I run it in the Netbeans. The following excaption arosed:</p>
  
  <p>*</p>
  
  <blockquote>
    <p>Traceback (most recent call last):   File
    "C:\Users\Lacces\Documents\NetBeansProjects\Python_GS_Tanuljunk_meg_programozni\src\Adatszerkezetek\Lista.py",
    line 11, in 
        print random.randrange(3,13,3)  #3-tól 13-ig, 3 érték elválasztásal AttributeError: 'builtin_function_or_method' object has
    no attribute 'randrange'</p>
  </blockquote>
  
  <p>*</p>
  
  <p>I have call to help the google, and I found this for the import:</p>
  
  <pre><code>import random
  </code></pre>
  
  <p>With that I used this instead of <em>from random import</em>*</p>
  
  <p>And it worked! No exception!</p>
  
  <p>Can somebody explain to me why throw exception at the first time, and why not at the second time (for a beginner programmer:))</p>