BitSet activeLayers = new BitSet(nbC);
activeLayers.set(1, nbC - 1, true);
for (int i = 0; i < nbAd; i++) {
allDiffLayers[i] = new BitSet(nbS);
int k = rand.nextInt(activeLayers.cardinality());
int v = activeLayers.nextSetBit(0);
while (k > 0) {
v = activeLayers.nextSetBit(v + 1);
k--;
}
allDiffLayers[i].or(layers[v]);