Not getting output or errors
<p>When I run the program I'm not getting any output or errors for that matter. Program is simple I have to generate 7 seven random numbers between 0-9 and store their value in an array then for each number in the array I have to use a for loop to output each value. </p>

<pre><code>var motto = [];

var randomNum = Math.floor(Math.random()*10);

for (i = 0; i &lt; 7; i++) { 

    motto.pop(randomNum);

}

for (i = 0; i &lt; motto.length; i++) { 

    document.write(motto[i] + "&lt;br&gt;");
}
</code></pre>