function create(){ return parseInt(Math.random() * 100) } window.setInterval(function () { console.log(create()); },2000)