int i = 0;
int last_i = 0;
Stats stats = new Stats();
while (tests > 0) {
Polynomial f = Polynomial.createRandom(degree);
Reducibility r = f.getReducibility();
if (r == Reducibility.IRREDUCIBLE) {
int spread = i - last_i;
stats.add(spread);
last_i = i;
tests--;