let i = 100;
let l = 0;
let par = document.getElementsByTagName('p');
const my_interval = setInterval(() => {
while(l < i) {
l++;
let createPar = document.createElement('p');
let random = Math.floor(Math.random() * 9999);
document.body.appendChild(createPar);
createPar.innerHTML = random;
}clearInterval(my_interval);
}, 100);