uniform(low=0.0, high=1.0, size=None)
low : float or array_like of floats, optional
size : int or tuple of ints, optional
返回值: ndarray or scalar
从一个均匀分布( [low, high):半开区间)中进行采样
np.random.uniform(1,2,(2,2))
[[1.62329443 1.38730153]
[1.90290111 1.90773506]]
<class 'numpy.ndarray'>
np.random.uniform(1,2)
1.8948932223669779
<class 'float'>
np.ran