即產生隨機排列:p = randperm(n) returnsa random permutation of the integers 1:n.所以要產生[16 31]的隨機排列,可以執行:randperm(31-16 1) 15 ...
確定! 回上一頁