I would like to shuffle a relatively long array (length ~400). While I am not a cryptography expert, I understand that using a random number generator with a period of less than 400!
will limit the space of the possible permutations that can be generated.
I am trying to use Python's random.SystemRandom
number generator class, which, in Windows, uses CryptGenRandom
as its RNG
.
Does anyone smarter than me know what the period of this number generator is? Will it be possible for this implementation to reach the entire space of possible permutations?