标签:normal imp rand orm pre nump 种子 int class
from numpy import random random.seed(1001) array=np.random.normal(0,1,(3,4)) # <class ‘numpy.ndarray‘> print(array) # [[-1.08644637 - 0.89606513 - 0.30629937 - 1.33993366] # [-1.20658558 - 0.64172681 1.30794563 1.84546043] # [0.82911495 - 0.02329881 - 0.20856395 - 0.91661975]]
随机种子,每次随机一样的数据出来
标签:normal imp rand orm pre nump 种子 int class
原文地址:https://www.cnblogs.com/SunshineKimi/p/12458099.html