function [x] = TEFE2016_Ex07_gera_x( N ) x = zeros( N, 1 ); for i=1:N G = rand; if G<.5 x(i) = - sqrt( 1 - 2*G ); else x(i) = sqrt( 2*G - 1 ); end end