Owning Class: statistics
Requires: MathScript RT Module
c = randpermutation(a)
Legacy Name: randperm
Generates a random permutation of natural numbers.
| Name | Description |
|---|---|
| a | Specifies a positive integer. |
| Name | Description |
|---|---|
| c | Returns a random permutation of the integers from 1 to a. c is a row vector. |
A = 11
C = randpermutation(A)