numpy random模块简介

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/xiangxianghehe/article/details/81660957
import numpy as np 
import math 

data = np.zeros((30000)).reshape((10000, 3))

data[:,0] = np.random.randint(1,500,(10000))
data[:,1] = np.random.random((10000))
data[:,2] = np.random.randint(1,50,(10000))
print(data)

猜你喜欢

转载自blog.csdn.net/xiangxianghehe/article/details/81660957