function X=Cauchy %Function that generates the Cauchy variable X X=tan(pi*(rand+1/2)); end