Function Reference
— Function File: randperm (n)

Return a row vector containing a random permutation of the integers from 1 to n.