Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng 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
Joined
Oct 21, 2005
Messages
25
Location
US
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.
 
Take a look at randperm(). Some may say it looks purpose-built for this.
 
somptingguy thanks again , u r really helpful
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top