I have the following code (see below) in a HTML file that generates random numbers between the range 100000-999999 (It works fine) but I want to make sure it does not REPEAT itself. How do I modify it or add code to do that?
var randomnumber = Math.floor(Math.random()*999999) + 100000
document.write(randomnumber)