Code:
#include <stdlib.h>
#include <stdio.h>
#include <limits.h>

int main ()
{
 int i;
 printf ("INT_MAX: %d\nRAND_MAX: %d\n\n", INT_MAX, RAND_MAX);

 printf ("--0--\n");
 srand(0);
 for (i = 0; i < 10; i++) printf ("%d ", rand());
 printf ("\n\n");

 printf ("--0--\n");
 srand(0);
 for (i = 0; i < 10; i++) printf ("%d ", rand());
 printf ("\n\n");

 
 srand(0);
 rand();
 srand (i = rand());
 printf ("--%d--\n", i);
 for (i = 0; i < 10; i++) printf ("%d ", rand());
 printf ("\n\n");

 srand(0);
 rand();
 srand (i = rand());
 printf ("--%d--\n", i);
 for (i = 0; i < 10; i++) printf ("%d ", rand());
 printf ("\n\n");

 return 0;
}
Network issues prevent me from actually compiling this code, so feel free to add semicolons and marks of parenthesis as needed.

The point of using time to seed rand is so that the same string of random numbers cannot be generated in two different runs of the program.