Software Techniques Inc. (www.stiwww.com) Rchoose.m Randomly select one or numbers from a set of numbers. Syntax b = rchoose(a,n) b has the same structure as a. If second argument is entered then n values are randomly selected from the set. Sample usage a=rand(1,10);b=rchoose(a,5); Vector b contains 5 elements randomly selected from a Users are encouraged to improve upon this function however you must reference Software Techniques Inc. as the original author and have a link in the M-file pointing to our site (www.stiwww.com). Likewise if we receive any major improvements to the M-file from you, the user we will do the same. I.e. your email address or website will also be noted in the comments of the M-file.