test/test_tools.h
changeset 2254 50cb2b90daa9
parent 2229 4dbb6dd2dd4b
child 2260 4274224f8a7d
equal deleted inserted replaced
8:5ac66e810731 9:788baf86b598
   172 
   172 
   173  for(int i=0;i<num;i++) {
   173  for(int i=0;i<num;i++) {
   174    n.chords.push_back(G.addEdge(n.outer[i],n.inner[i]));
   174    n.chords.push_back(G.addEdge(n.outer[i],n.inner[i]));
   175    n.outcir.push_back(G.addEdge(n.outer[i],n.outer[(i+1)%5]));
   175    n.outcir.push_back(G.addEdge(n.outer[i],n.outer[(i+1)%5]));
   176    n.incir.push_back(G.addEdge(n.inner[i],n.inner[(i+2)%5]));
   176    n.incir.push_back(G.addEdge(n.inner[i],n.inner[(i+2)%5]));
   177   }
   177  }
   178  return n;
   178  return n;
   179 }
   179 }
   180 
   180 
   181 int urandom(int n) {
       
   182   return rnd.getInt(n);
       
   183 }
       
   184 
       
   185 #endif
   181 #endif