Generating Random Numbers With JavaScript

I wrote a JavaScript program to create random digits, then used it to create a list of 1,000,000. I’ve copied the first 250,000 to a Word document, so if you want, you can download them (145 kilobytes). After a specified amount of digits, a red number shows how many have been generated so far (if enabled). You can also run the program or view the code. If you want to re-run the code, however, you have to close and reopen the page (you can’t just refresh).