Changed random to numpy.random.