Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 896 Bytes

README.md

File metadata and controls

25 lines (20 loc) · 896 Bytes

Markov chain

Rust implementation of a Markov chain to generate random text based on a certain input file.

It builds a Markov chain using this input file, and generates random text based on the probabilities found in the given text. The more text, the more random the outcome is.

Example

Input:

markov --file input1.txt -a 100

Output:

ice trying to open the computer banks. AM never let us about it. Loud, up there, or we'll die. We saw
that element. But it hard, trying to their individual voices strident as fear and was AM. I could
devise for one by fog where novas lived in my skull. Or cut through her eyes. Gorrister, half-conscious.
Benny, and Hawaiian fruit cocktail. I knew it wasn't the computer. He pitched forward into the floor
with my brain parts that Earth; and gnawed at the ice had not happy. Gorrister had to open them. I will
say the sound coming