我是靠谱客的博主 自然画板,这篇文章主要介绍np.random.randint()用法介绍,现在分享给大家,希望可以做个参考。

np.random.randint()的用法:

np.random.randint(low,high=None,size=None,dtype=‘l’) //形参具有默认值
Method:
①:if low=num1,while high=num2,return random integers from low to high
②:if low=num1,while high=None,return random integers from zero to low
③:if low=num1,while size = num,return num integers(num个) from zero to low
④:if low=num1,high=num2,size=(n,m),return a n lines m columns array,in which the num from num1 to num2

最后

以上就是自然画板最近收集整理的关于np.random.randint()用法介绍的全部内容,更多相关np内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(96)

评论列表共有 0 条评论

立即
投稿
返回
顶部