@Test public void testSampleIndex_ImplicitRandom_NonRepeating_BetweenRuns() { IntSeries s1 = Sampler.sampleIndex(5, 100); IntSeries s2 = Sampler.sampleIndex(5, 100); boolean hasDifferences = false; for (int i = 0; i < 5; i++) { if (s1.getInt(i) != s2.getInt(i)) { hasDifferences = true; break; } } assertTrue(hasDifferences); }
public static IntSeries sampleIndex(int sampleSize, int originalSize) { return sampleIndex(sampleSize, originalSize, defaultRandom); }
Sampler { public static IntSeries sampleIndex(int sampleSize, int originalSize) { return sampleIndex(sampleSize, originalSize, defaultRandom); } }
Sampler { public static IntSeries sampleIndex(int sampleSize, int originalSize) { return sampleIndex(sampleSize, originalSize, defaultRandom); }  }
Sampler { public static IntSeries sampleIndex(int sampleSize, int originalSize) { return sampleIndex(sampleSize, originalSize, defaultRandom); }  static Random getDefaultRandom(); static IntSeries sampleIndex(int sampleSize, int originalSize); static IntSeries sampleIndex(int sampleSize, int originalSize, Random random); }
Sampler { public static IntSeries sampleIndex(int sampleSize, int originalSize) { return sampleIndex(sampleSize, originalSize, defaultRandom); }  static Random getDefaultRandom(); static IntSeries sampleIndex(int sampleSize, int originalSize); static IntSeries sampleIndex(int sampleSize, int originalSize, Random random);  }