title: C, using random and storing them in an array
body: <p>Just trying to generate 25 random numbers between 60-100 and storing them in an array.  Need some confirmation though.  Is this how it would look?</p>
  
  <pre><code>int main () {
  
  int temp[25], i, sum;
  
  
  srand( (unsigned) time(NULL) );
  
  for (i=0; i &lt;= 25; i++) {
  
  get_value(i);
  sum += temp[25];  //Eventually will be added together to find avg
  
  };
  
  
  }
  
  
  int get_value(int temp_random) {
      return((rand()%40)+60);
  
  }
  </code></pre>