<:> Generating a Markov chain



To generate a variation of the sequence (from which n-gram probabilities have been sampled) we output n-grams according to their sampled probabilities.

This is the process of generating a `Markov approximation' or `Markov chain'.

The order of the chain is the number of previous elements taken into account in generating each new element.