randperm

Parent Previous Next

randperm

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

Random permutation of the integers from 1 to n

arg

type

Description

Unit or Value scale

n

SCAL

the upper limit of the range, or the size of the array to create


Outputs

  • y is an array of integers between 1 and n in a random order

Notes

Examples

See Also

irand | rand

Created with the Personal Edition of HelpNDoc: Easily create EPub books