3 ms·
Bah. Code should just be: if (Math.random() < .5) { var response = "NO"; ...
by thaumaturgy 17y ago
Bah. Code should just be:
if (Math.random() < .5) {
var response = "NO";
...
- gb 17y agoor var response = Math.random() < 0.5 ? "NO" : "YES";
- tfe 17y agoImplemented, thanks.
- thaumaturgy 17y agoNice! Or: google.setOnLoadCallback(function() { window.setTimeout(function() { jQuery('#answer').html(Math.random() < 0.5 ? "NO" : "YES"); }, 2000); });