samer@4: function a=shuffle(a) samer@4: % shuffle - randomly shuffle the columns of A samer@4: % samer@4: % shuffle :: [[N,M]] -> [[N,M]]. samer@4: [n,i]=sort(rand(1,size(a,2))); samer@4: a=a(:,i); samer@4: