public static double cauchy(){
  return Math.tan(Math.PI * (uniform() - 0.5));
}

public static double cauchy ( ) { return Math . tan ( Math . PI * ( uniform ( ) - 0.5 ) ) ; }
returns a random real number from the cauchy distribution .
