1 >> randperm(5) 2 3 ans = 4 5 1 3 2 4 5 使用randperm(N)函数 转载于:https://www.cnblogs.com/yuzhuwei/p/4104528.html