Function rperm() creates a word object of random permutations.
Function rcyc() creates random permutations comprising a single
(group-theoretic) cycle of a specified length. Functions
r1cyc() and rgs1() are low-level helper functions.
In function rperm(), integer specifying how many
elements can move (that is, how many elements do not map to
themselves), with default NA meaning to choose a permutation
at random. This is useful if you want a permutation that has a
compact cycle representation