in reply to Re^6: Algorithm RFC: fast (pseudo-)random shuffle with no repetition
in thread Algorithm RFC: fast (pseudo-)random shuffle with no repetition
there is only one possible solution
I count 7! = 5,040 solutions.
Trying 1e15 shuffles
There are 15!/8! = 32,432,400 permutations of the set (and for that matter 15! is only about 1.3e12). I don't see mention in Algorithm::Permute of how it handles duplicate elements, but I know that Algorithm::Loops handles them correctly.
That said I do agree with the thrust of your point. :)
|
---|