function getRandomWait(){ var wait = Math.floor(Math.random() * maxWait ) + 100; console.log('Waiting for ' + wait + 'ms before next bet.'); return wait ;