let i = 100;
let l = 0;
let par = document.getElementsByTagName('p');
let createPar = document.createElement('p');
let random = Math.floor(Math.random() * 9999);
setInterval(() => {
while(l < i) {
l++;
document.body.appendChild(createPar);
createPar.innerHTML = random;
}
}, 100);
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);