And how would I keep a list of the last 5 numbers generated? How should I apply this function in the following code?
<button onclick="document.body.innerHTML += (Math.floor(Math.random() * ( 989000000 - 988000000 ) + 987000000 ) + '<br>' );">Gerar Números</button><br>