@Test
public void randomShouldBeSameWithDifferentSeeds() {

    double seed = System.currentTimeMillis() % 100000000;
    ReplayablePseudoRandom random1 = new ReplayablePseudoRandom(seed);
    ReplayablePseudoRandom random2 = new ReplayablePseudoRandom(seed);
    String firstRandom = "";
    for (int i = 0; i < 10000; i++) {
        float number = random1.nextInt(2);
        firstRandom = firstRandom + number;
    }
    String secondRandom = "";
    for (int i = 0; i < 10000; i++) {
        float number = random2.nextInt(2);
        secondRandom = secondRandom + number;
    }
    assertEquals(firstRandom, secondRandom);
}