Random permutation (source code)

= Random permutation
{wiki=Random_permutation}

A random permutation is a rearrangement of a finite sequence of elements where each possible arrangement is equally likely. In other words, if you have a set of \\( n \\) distinct elements, a random permutation is one of the \\( n! \\) (n factorial) possible orderings of those elements chosen uniformly at random. For example, consider the set of elements \\( \\\{1, 2, 3\\\} \\).