I have a random number generator feeding numbers into an array, but when I print out the table, the last line is always a set of values out of the boundaries that I defined in the following function:
#include <stdio.h>
#include <stdlib.h>
int main()
{
    int temp[22];
    int n;
    for(n=0; n<23; n++){
        temp[n] = rand()%(100 + 1 - 60) + 60;
        printf("%d  ,  %d \n", n, temp[n]);
}
return 0;
Ive created something of this nature before, but now its acting up, I just dont know where.
 
     
    