#include <stdio.h> #include <stdlib.h> #include <time.h> int main(void) { int nStartValue = time(NULL); int i = 0; for (i = 0; i<10; i++){ srand(nStartValue); printf("%d\n",rand() % 100); } return 0; }