Generalization to uniform sampling of tri-grams etc.
4 base states, 12 binary transitions, 36 tri-grams