For when you're feeling particularly uncertain, but still want to get the job done.
var guess = Math.random()*10; if (guess > 7) { do_something(); } else { do_something_else(); }