function P = unifP(m,n) P=rand(m^n,1);P=P/sum(P); return