randperm

Random permutation of the integers from 1 to #p1

Syntax

y = randperm ( n )
y = n.randperm (  )

Inputs

ArgumentTypeDescriptionUnit
nscalarthe upper limit of the range, or the size of the array to createn/a

Outputs / Return Value

See Also

Review Status