PHP Code:
function onTimeout() {
// if conditions are met, return to stop the function. This means anything after
// the return is not executed, so the setTimer() is never called
if (int(random(0,8)) <= 2) return;
setTimer(0.5);
}
Is what Chris was referencing.