Random usage in tests should be avoided unless the Randome instace is parametrized with a constant or configurable seed, e.g. Random rnd = new Random(12345L);
This is the matter of tests reproducibility.