title: I cannot get import random to work- python 3
body: <p>I have written out the following code to try and generate random numbers- </p>
  
  <pre><code>import random
  def main(): 
     a=random.randint(1,100)
     b=random.randint(1,100) 
     print (a)
     print (b)
  
  main() 
  </code></pre>
  
  <p>After running the program, I got this message:  </p>
  
  <blockquote>
    <p>File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/random.py", line 41, in module                   </p>
    
    <blockquote>
      <p>from math import log as _log, exp as _exp, pi as _pi, e as _e, ceil as _ceil </p>
      
      <blockquote>
        <p>ImportError: bad magic number in 'math': b'\x03\xf3\r\n</p>
      </blockquote>
    </blockquote>
  </blockquote>