invalid syntax for from import random WHY : when i try to run this module 

    from import random
    def guessnum():
        randomnum = random.randint(1,6)
    awnser = input ("what do you think the number is? ")
    if awnser==randomnum:
       print ("good job. you are correct. ")
    else:
         print ("incorrect. better luck next time. ")
    restart = input ("would you like to try again? ")
    if restart = Yes or y:
    guessnum()
    else:
         end()

i get invalid syntax highlighting the import. why is this.
i have already tried `import random` but it doesn't seem to want to work