Puoi aprire il codice e modificare la funzione: vedi l'Help
You can open the Code and modify the function: see the Help
HELP

function f(x) { y = Math.cos(x); return y }
function g(x) { y = Math.sin(x); return y }

aX = -Math.PI; bX = 3*Math.PI; aY = -1.5; bY = 1.5
Dx = Math.PI/4; Dy = 0.5

i=0
for(j=0;j<3e4;j=j+1) {xp=Math.random()*(bX-aX)+aX; yp=Math.random()*(bY-aY)+aY
                 if( yp < f(xp) && yp > g(xp) ) {QQ1x[i]=xp; QQ1y[i]=yp; i=i+1} }

AX="-PI"; BX="3*PI"