function Data=falsecasinorandomizer(m,O); %Inputs: n = length(O), O is an n-vector of observations. %m=integer greater than 1, the number of %"randomized replicates of O" the function will create. %Output: Data = m by n matrix, each row of which is an %n-vector obtained from O by random permutation. n=length(O); B=[]; for i=1:m B=[B;O(randperm(n))]; end Data=B; end