1 m=10; 2 rand_indices = randperm(m);%将1-10的顺序打乱
Matlab
原文:http://www.cnblogs.com/liangxw/p/5285239.html