Create an array of the given shape and populate it with random samples from a uniform distribution over
创建一个给定形状的数组,并从均匀分布中随机抽取样本填充它
>>> np.random.rand(3,3)
array([[ 0.63207028, 0.85349655, 0.11517256],
[ 0.68420315, 0.62482708, 0.41120367],
[ 0.46759302, 0.05667612, 0.38152197]])
注意返回的是两层方括号的
np.random.random(10)
才是一个方括号的