[kata14] Generate text randomly from ngrams.