code: public void sampleSequenceForward(SequenceModel model, int[] sequence, double temperature) {
      // System.err.println("Sampling forward");
      for (int pos=0; pos<sequence.length; pos++) {
        samplePosition(model, sequence, pos, temperature);
      }
    }
docs: Samples the complete sequence once in the forward direction
  Destructively modifies the sequence in place.
  @param sequence the sequence to start with.