// makeRandomNumbers.cc
// P. Conrad CISC181 06S

#include <iostream>
using std::cout;
using std::cerr;
using std::endl;

#include <cstdlib> // for atoi, exit
#include <ctime> // for time funciton call

int main(int argc, char *argv[])
{

  srand(time(0)); // seed the random number generator from the current time

  if (argc != 4)
    {
      cerr << "Usage: " << argv[0] << " howMany min max" << endl;
      exit(1);
    }

  int howMany = atoi(argv[1]);
  int min = atoi(argv[2]);
  int max = atoi(argv[3]);
  
  int rangeSize = max - min + 1;

  for (int i=0; i<howMany; i++)
    {
      int thisRand = rand() % rangeSize;
      thisRand += min;
      cout << thisRand << endl;
    }

  return 0;

}
