int minid = 500, maxid=1000000;
ID2Chooser chooser = new ID2Chooser(props, minid, maxid, 1, 0);
for (int id1 = minid; id1 < maxid; id1 += 3763) {
HashSet<Long> existing = new HashSet<Long>();
long nlinks = chooser.calcTotalLinkCount(id1);
for (long i = 0; i < nlinks; i++) {
long id2 = chooser.chooseForLoad(rng, id1,
LinkStore.DEFAULT_LINK_TYPE, i);
existing.add(id2);
}