Who can explain me the differences? In both ways seems to act the same.
Piece 1
printf("The first randomly generated number: %d\n", rand()%100);
srand(time(NULL));
printf ("The second randomly generated number: %d\n", rand()%100);
Piece 2
printf("The first randomly generated number: %d\n", rand()%100);
printf ("The second randomly generated number: %d\n", rand()%100);