A class to generate Markov-chain random words from a given list of words.