#include <iostream>
#include <sys/time.h>
#include <stdlib.h>

main()
{
  timeval tp;

  /* put these two lines at the beginning of your program, like
     the first two lines of your main.  You can put it in a constructor
     but there is no need for this to be called more than once 
     (the constructor is called every time you create an instance of
     the class). */
  gettimeofday(&tp, NULL );
  srand(tp.tv_sec);

  /* after srand has been called, you can call rand as many times as
     you like */
  cout << rand() << endl;
  cout << rand() << endl;
  cout << rand() << endl;
  cout << rand() << endl;
  cout << rand() << endl;
  cout << rand() % 10 << endl;
}


