initialize random statically with a fixed seed, just in case someone uses it before @beforeClass runs, e.g. static int i = random.nextInt();