Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

help: how to generate two random sequences from an array

Status
Not open for further replies.

austinpowers

Electrical
Oct 21, 2005
25
i have an array suppose say [4 3 2 6 1 5]
i need to generate two random sequence arrays from this array,

i know about fliplr or flipud functions by which i can get a different combination.

But i want to know is there any other function by which i can generate two different sequences from this array.
 
Replies continue below

Recommended for you

Take a look at randperm(). Some may say it looks purpose-built for this.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor