概述
random.shuffle(x[,random])
Shuffle the sequence x
in place. The optional argument random is a 0-argument function returning a random float in [0.0,1.0)
; by default,this is the function random()
.
Note that for even rather small len(x)
,the total number of permutations of x
is larger than the period of most random number generators; this implies that most permutations of a long sequence can never be generated.
如果我想重复获得[‘a’…’k’]的随机排列,似乎随机播放不会给我随机性.我的理解是对的吗?
谢谢!
总结
以上是编程之家为你收集整理的python random.shuffle的随机性全部内容,希望文章能够帮你解决python random.shuffle的随机性所遇到的程序开发问题。
如果您也喜欢它,动动您的小指点个赞吧