Random Word Generator (Markov Chain)

Hey there!
I was check this that is very in interesting. I want to create a word combiner for my personal use.
Please tell me how to build it .
waiting response.