# rperm

From permutations v1.0-5
by Robin K S Hankin

##### Random permutations

Create a word object of random permutations

- Keywords
- sybolmath

##### Usage

`rperm(n,r,moved=NA)`

##### Arguments

- 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

`NA`

meaning to choose a permutation at random. This is useful if you want a permutation that has a compact cycle representation

##### Value

Returns an object of class `word`

##### Note

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).

##### See Also

##### Examples

```
# NOT RUN {
rperm(30,9)
as.cycle(rperm(30,9))
rperm(10,9,2)
# }
```

*Documentation reproduced from package permutations, version 1.0-5, License: GPL-2*

### Community examples

Looks like there are no examples yet.