function [N] = Cauchy(n); %Generates a vector of Laplace random variables, N of length n. u=rand(n,1); N=tan(pi.*(u-.5));