var usernum = prompt("How long a random number should I create?","Write your number here")
while (num <= loops)
var zip = Math.round(9 * Math.random());
Gives you this:
You get the effect by using the Math object method of generating random numbers. You can't use the getSomething() method because the numbers would most likely all be the same.
The loop runs until the numbers have been posted.