function [R,STA,CTA]=simulateR(n,m)
% simulates an n by m matrix of ranks for R
R=100*ones(n,m);
for i=1:n
    x=sample(1:m,6);
    R(i,x)=[1 2 3 4 5 6];
end
STA=ones(1,n);
CTA=ones(1,m);
