#include #include #include using namespace std; const int MAX_SET_MEMBERS = 25; const int MAX_SET_VALUE = 15; int main(int argc, char *argv[]) { srand(time(NULL)); int numSetPairs = 5; if (argc > 1) { numSetPairs = atoi(argv[1]); } for (int setPair = 1; setPair <= numSetPairs; setPair++) { for (int set=1; set<=2; set++) { int numMembers = (rand() % MAX_SET_MEMBERS) + 1; for (int i=1; i<=numMembers; i++) { int setMember = (rand() % MAX_SET_VALUE) + 1; cout << setMember << " "; } cout << endl; } } }