Markov builds a markov chain from an input text and outputs a corresponding random text.
Compile it with (needs libboost-dev):
$ g++ -O2 -Wall -o markov markov.cpp
This example is from Wikipedia's cat site:
$ ./markov -f Cats -c 200 cat
Cats come from a cat. This behavior is 12 weeks and patching rather than those of the silver tabby are much of a particular older. This use carpet backing is only 10 years ago, and share excess kill with for ovulation. Despite some cat is also bring home or perching. The concept of the big cats waiting in the ground and on it is ethically controversial. After about every two males , sold under brand names as the need to have two males are believed to as ferrets or perching. Another unusual among mammals that cats in attempts to 60% of these territories. A true tricolor must be the cat is less slender without any light is tendonectomy, which they were around 1. Also lending credence to as Feline Asocial Aggression. National Cancer Research and the extremities or a Neolithic grave was sleeping more attractive alternative idea is the carnassial pair on the lower part per billion. The domestic cat is unclear whether against this family, domestic cats do without his cloak rather poor color is due to obvious dangers such as a noted fondness for other Asian countries.