samer@0: /* samer@0: * Copyright (c) 2000, Samer Abdallah, King's College London. samer@0: * All rights reserved. samer@0: * samer@0: * This software is provided AS iS and WITHOUT ANY WARRANTY; samer@0: * without even the implied warranty of MERCHANTABILITY or samer@0: * FITNESS FOR A PARTICULAR PURPOSE. samer@0: */ samer@0: samer@0: package samer.maths.random; samer@0: import java.util.*; samer@0: samer@0: public class Cauchy extends BaseRandom samer@0: { samer@0: public double next() { samer@0: return Math.tan(0.9999*Math.PI*(rnd.nextDouble()-0.5)); samer@0: } samer@0: }