God! I'm going nuts...♂️
I want a javascript code whereby in an array of numbers for example (202,157), the numbers that generate or change randomly every second from a minimum of 100 to a maximum of 600 are only the last three (157 for instance), and every previously generated random numbers go below the newly generated random numbers.
For instance, if the first number generated is 202,157 the second will probably be 202,364 or 202,176 probably, but the first three numbers (202) don't change.
Take this set for example
202,411
202,203
202,422
202,301
202,157
They are separated by a comma but only the last three numbers change randomly.
I've tried my possible best, but mehn, I don't even know what I'm writing anymore. I'm going nuts.
var random = Math.random[min,max];
function getRandomInt(min, max){
document.getElementById("ballerii").innerHTML = random;
}
setInterval(random, 1000);
Please anyone that understands what I seek, can help me find please. If you know anyone that can help too, please refer him/her. Thank you.