Maximal Length of List to Shuffle with Python random.shuffle?

Posted by Henrik on Stack Overflow See other posts from Stack Overflow or by Henrik
Published on 2010-06-17T14:48:22Z Indexed on 2010/06/17 14:53 UTC
Read the original article Hit count: 213

Filed under:
|
|

I have a list which I shuffle with the Python built in shuffle function (random.shuffle)

However, the Python reference states:

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.

Now, I wonder what this "rather small len(x)" means. 100, 1000, 10000,...

Can anybody clarify?

Thanks!

© Stack Overflow or respective owner

Related posts about python

Related posts about random