double normal(){ double u,v; u=Math.random(); v=2*Math.PI*Math.random(); return Math.sqrt(-2*Math.log(u))*Math.cos(v); }