@Test
public void testSampleIndex() {

    // using fixed seed to get reproducible result
    IntSeries sample = Sampler.sampleIndex(5, 10, new Random(5));
    new IntSeriesAsserts(sample).expectData(3, 4, 2, 8, 5);
}