HMM samples generator.
HMM: Probability of the state sequence.