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

