final int[] partitions = new int[numPartitions];
final IntSet[] ids = new IntSet[numPartitions];
final StandardIDPool[] idPools = new StandardIDPool[numPartitions];
for (int i = 0; i < numPartitions; i++) {
partitions[i] = random.nextInt();
ids[i] = new IntHashSet(attemptsPerThread * numThreads / numPartitions);
idPools[i] = poolFactory.get(partitions[i]);
}
Thread[] threads = new Thread[numThreads];
for (int i = 0; i < numThreads; i++) {