random numbers in C
- by Sergey
for(i = 0; i < n; i++){
srand(time(NULL));
printf("%d ", time(NULL));
for(j = 0; j < (n-1); j++){
a[i,j] = rand();
}
}
I try to generate random numbers, but they are the same... I try srand(i * time(NULL)). No matter..
What should i do?