JSFiddle - React, Tailwind, and code Playground
HTML
<div class="random-no"></div>
JavaScript
function randomNumber(array, className) {
$('.random-no').text(array[Math.round(Math.random()*array.length)]);
}
const arr = ['1011012','2011013','3011014','4011015','5011016','6001017','6001018'];
setInterval(function() {
randomNumber(arr, '.random-no');
}, 1000);