n=50; m=50; y=zeros(1,n); for k=1:n x=die(m); y(k)=mean(x); end var(y)