Order bias in wrong implementation of Fisher Yates Shuffle
问题 I implemented the shuffling algorithm as: import random a = range(1, n+1) #a containing element from 1 to n for i in range(n): j = random.randint(0, n-1) a[i], a[j] = a[j], a[i] As this algorithm is biased. I just wanted to know for any n(n ≤ 17) , is it possible to find that which permutation have the highest probablity of occuring and which permutation have least probablity out of all possible n! permutations. If yes then what is that permutation?? For example n=3 : a = [1,2,3] There are 3