Previous Up Next

12.2.1  Random permutations

The randperm or shuffle command computes a random permutation.

Example

randperm(3)
     
⎡
⎣
2,0,1⎤
⎦
          

Previous Up Next