Products & Services Solutions Academia Support User Community Company

Learn more about MATLAB   

randperm (RandStream) - Random permutation

Class

@RandStream

Syntax

randperm(s,n)

Description

randperm(s,n) generates a random permutation of the integers from 1 to n. For example, randperm(s,6) might be [2 4 5 6 1 3]. randperm(s,n) uses random values drawn from the random number stream s.

See Also

permute, @RandStream

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS