code: public void sampleSequenceRepeatedly(SequenceModel model, int numSamples) {
      int[] sequence = getRandomSequence(model);
      sampleSequenceRepeatedly(model, sequence, numSamples);
    }
docs: Samples the sequence repeatedly, making numSamples passes over the entire sequence.
  Destructively modifies the sequence in place.