logger.info("FastRandom: {}ms.", (System.nanoTime() - start) / 1000000);
logger.trace("Use the result so that JVM doesn't skip the computation - here it is: {}", sum);
// -------------------------------------------------------
MersenneRandom r = new MersenneRandom(seed);
// warmup
sum = 0;
for (int j = 0; j < warmUpCount; j++) {
sum += r.nextInt();
}
sum = 0;
start = System.nanoTime();
for (int j = 0; j < count; j++) {
sum += r.nextInt();
}
logger.info("MersenneRandom: {}ms.", (System.nanoTime() - start) / 1000000);
logger.trace("Use the result so that JVM doesn't skip the computation - here it is: {}", sum);
}