Random permutations
Create a word object of random permutations
rperm(n,r,moved=NA)
n |
Number of permutations to create |
r |
Size of permutations |
moved |
Integer specifying how many elements can move (that is,
how many elements do not map to themselves), with default |
Returns an object of class word
Argument moved
specifies a maximum number of elements
that do not map to themselves; the actual number of non-fixed elements
might be lower (as some elements might map to themselves).
Robin K. S. Hankin
rperm(30,9) as.cycle(rperm(30,9)) rperm(10,9,2)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.