@lilchipmunk11 The following line creates a random whole number between 1 and 1000.
random = Math.floor((Math.random() * 1000) + 1);
In the test portion, you could put a console.log(random) for each line of the loop, so you can see in the developer console at the bottom of the page what the function returns line by line. It will run for a few minutes …