Python中生成均匀分布的随机数的代码:
1>>>a=mat(zeros((3,2))); 2>>>uniform(size=a.shape) 3array([[0.08886636,0.37942544], 4[0.37711361,0.3751705], 5[0.11307029,0.05820116]])原文来自:https://www.py.cn
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
Python中生成均匀分布的随机数的代码:
1>>>a=mat(zeros((3,2))); 2>>>uniform(size=a.shape) 3array([[0.08886636,0.37942544], 4[0.37711361,0.3751705], 5[0.11307029,0.05820116]])原文来自:https://www.py.cn
暂无评论内容