RandomPermutation
RandomPermutation[n] gives a pseudorandom permutation of length n.
RandomPermutation[gr] gives a pseudorandom permutation in the permutation group gr.
RandomPermutation[n, k] gives a list of k pseudorandom permutations.
Examples
Random permutation:
RandomPermutation[5]
(* Cycles[{{1, 3, 5, 2}}] *)Multiple permutations:
RandomPermutation[4, 3]Please visit the official Wolfram Language Reference for more details.