// The below code executes 0-100, I have used es6 arrow function concept setInterval(() => console.log(Math.floor(Math.random()*101)),1000);