Sorry, I\'m new to JS and can\'t seem to figure this out: how would I do probability?
I have absolutely no idea, but I\'d like to do something: out of 100% chance, m
var decide = function(){ var num = parseInt(Math.random() * 10) + 1; // assigns num randomly (1-10) num > 7 ? d() : e(); // if num > 7 call d(), else call e() };