Jak testovat náhodně

long seed = System.currentTimeMillis();
Random random = new Random(seed);
try {
    ...
} catch (Throwable e) {
    throw new AssertionFailedError("For seed: " + seed + " was: " + e.getMessage());
}
 
www.softeu.cz
22/30