The javascript in this web page generates text by analyzing what's in the "Source Text" box and then creating a random string of text having the same frequencies of letter groups (or "chunks") as the source text.