It looks like you have something like
import random
from numpy import *
and randomgets clobbered from numpy import. If you want to save import *, then you will need to rename random:
import random as rnd
from numpy import *
, , , , numpy , :
import random
import numpy as np