
// Generates an inventory.dat file for inventory.mod
// for HW 1 in MS&E 212, spring 2005 and 2006.

#include <iostream>
#include <assert.h>

using namespace std;

main(int argc, char **argv) {
  int N;

  assert(argc == 2);
  N = atoi(argv[1]);
  assert (N > 2);

  cout << "param N := " << N << ";" << endl << endl;

  cout << "param d :=";
  for (int i=1; i<= N; ++i)
    cout << endl << i << " " << 1 + (random() % N);
  cout << ";" << endl << endl;

  cout << "param h :=";
  for (int i=1; i<= N; ++i)
    cout << endl << i << " " << 1 + (random() % N);
  cout << ";" << endl << endl;

  cout << "param a :=";
  for (int i=1; i<= N; ++i)
    cout << endl << i << " " << 1 + (random() % N);
  cout << ";" << endl;
}
