In an infinite loop, read an int from a random location in the file, and print it to stderr.
for (;;) {

      int offset = rand() % 100;
      int read_num;

      fseek(fp, offset, SEEK_CUR);
      fread(&read_num, sizeof(int), 1, fp);
      fprintf(sterr, "%d", read_num);

    }