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