C Array of Random Numbers Storage
<p>Hi I want to know is there a way to store randnumber without prompting user for input. In this example we want user to store 16 randnumbers in array <code>storerand</code> without prompting the user for randnums for example: </p>

<pre><code>#include&lt;stdio.h&gt; 
#include&lt;stdlib.h&gt; 
void main() {
    int randnum;
    int i=0;
    int storerand[16]; // storing randnumbers 
    randnum=rand();

        while(i &lt;16){
            storerand[i]=randnum; // why is this not storing 16 rand number how can i store 16 randnumbers 
         i++;
        }
        return 0;
</code></pre>