randperm
Random permutation of the integers from 1 to #p1
Syntax
y = randperm ( n )
y = n.randperm ( )
Inputs
| Argument | Type | Description | Unit |
|---|---|---|---|
n | scalar | the upper limit of the range, or the size of the array to create | n/a |
Outputs / Return Value
y:yis an array of integers between 1 andnin a random order
See Also
Review Status
- Legacy parameter naming does not exactly match current engine metadata and should be reviewed manually.