function Pi = Pi2(N)
%
x = rand(1,N);
y = rand(1,N);
Pi = 4*sum(x.^2 + y.^2 <= 1)/N;
