np.random.uniform(0,1)

返回0~1之间的一个随机数

例如

x = np.random.uniform(0,1)
print(x)

输出:0.6520368742521574

猜你喜欢

转载自blog.csdn.net/Gabriel_wei/article/details/131686484
今日推荐