function x=gen(N,mu,sigma)
x=zeros(N,10);
for i=1:N
    e = 100;
    cond=1;
    while cond
        
        x(i,2)=normt1(mu(1,2),sigma(1,2),-e,0);
        x(i,3)=normt1(mu(1,3),sigma(1,3),-e,0);
        x(i,5)=normt1(mu(1,5),sigma(1,5),-e,0);
        x(i,6)=normt1(mu(1,6),sigma(1,6),-e,0);
        x(i,7)=normt1(mu(1,7),sigma(1,7),-e,0);
        x(i,9)=normt1(mu(1,9),sigma(1,9),-e,0);
        x(i,10)=normt1(mu(1,10),sigma(1,10),-e,0);
        
        x(i,1) = log(2 - (2*exp(x(i,2)) + 2*exp(x(i,3)) + exp(x(i,6)) + exp(x(i,10))));
        x(i,4) = log(1 - (2*exp(x(i,5)) + exp(x(i,6)) + exp(x(i,7))));
        x(i,8) = log(1 - (exp(x(i,3)) + exp(x(i,7)) + 2*exp(x(i,9)) + exp(x(i,10))));
        cond = and(x(i,:) < -e, x(i,:) > e);
    end   
   
end