monkeys.icn: Program to generate random text

September 7, 1990; Stephen B. Wampler
Contributors: Ralph E. Griswold and Alan Beale
This file is in the public domain.
The old monkeys at the typewriters anecdote ...

   This program uses ngram analysis to randomly generate text in
the same 'style' as the input text.  The arguments are:

   -s     show the input text
   -n n   use n as the ngram size (default:3)
   -l n   output at about n lines (default:10)
   -r n   set random number seed to n

Source code | Program Library Page | Icon Home Page