Login
From:
Ben Hoyt's technical writing
(Uncensored)
subscribe
Using a Markov chain to generate readable nonsense with 20 lines of Python
https://benhoyt.com/writings/markov-chain/
links
backlinks
Roast topics
Find topics
Find it!
Describes a simple Markov chain algorithm to generate reasonable-sounding but utterly nonsensical text, and presents some example outputs as well as a Python implementation.