random seed for numpy rand python code example
Example 1: does np.random.randint have a seed
np.random.seed(0)
np.random.randint(10, size = 5)
Example 2: numpy random normal seed time
>>> numpy.random.seed(0) ; numpy.random.rand(4)
array([ 0.55, 0.72, 0.6 , 0.54])
>>> numpy.random.seed(0) ; numpy.random.rand(4)
array([ 0.55, 0.72, 0.6 , 0.54])