Main Page   Class Hierarchy   Compound List   File List   Contact   Download   Symbolic Constraints   Examples  

instanceGen.cc

00001 #include<iostream>
00002 #include<stdlib.h>
00003 
00004 using namespace std;
00005 
00006 int main(int argc, char** argv) {
00007 
00008    int n = atoi(argv[1]);
00009    int limit=atoi(argv[2]);
00010    int seed = atoi(argv[3]);
00011    cout<<n<<endl;
00012    srand(seed);
00013    for(int i=1 ; i<=n; i++)
00014       cout<<rand()%limit<<" "<<rand()%limit<<endl;
00015 }
Generated on Mon Mar 28 22:03:48 2011 for SCIL by  doxygen 1.6.3