var math = use('math/radians')
var N = 1000000;
var num = 0;
var i = 0
var x = null
var y = null
for (i = 0; i < N; i++) {
  x = 2 * $random();
  y = $random();
  if (y < math.sine(x * x))
    num++;
}
log.console(2 * num / N);

$stop()