Random number generation in C

 int i;
  for (i=0; i<5; i++)
  {
    printf ("rand[%d]= %u\n", i, rand ());
  }