function randomNum(){
let data;
for(let i=1;i<=10;i++){
let time = Math.random()*100;
setTimeout(()=>console.log(i,time),time)
}
}
randomNum();
For Each iteration, the program needs to stop for random
time, thenishould be printed and the loop continued