int aLimit = objectNr * modifications;
as = new A[objectNr];
for (int i = 0; i < objectNr; i++) {
int randomInt = random.nextInt(aLimit);
as[i] = new A(randomInt, randomInt+modifications);
}
bs = new B[objectNr];
for (int i = 0; i < objectNr; i++) {
bs[i] = new B(random.nextInt(aLimit) + (aLimit * 2));