1,np.random.rand()
通过本函数可以返回一个或一组服从“0~1”均匀分布的随机样本值。随机样本取值范围是[0,1),不包括1。
2,np.random.randn()函数
通过本函数可以返回一个或一组服从标准正态分布的随机样本值。
3,range()与np.arange()区别
range()返回的是range object,而np.nrange()返回的是numpy.adarray()
range尽可用于迭代,而np.arange作用远不止于此,它是一个序列,可被当做向量使用。
range()不支持步长为小数,np.arange()支持步长为小数