Skip to content

Instantly share code, notes, and snippets.

Avatar
🙌
good times

Adam Bachman abachman

🙌
good times
View GitHub Profile
@Eckankar
Eckankar / MarkovWord.py
Created Apr 8, 2010 — forked from agiliq/gist:131679
Generate random words based on markov chains rather than random sentences.
View MarkovWord.py
#!/usr/bin/env python
import random
class Markov:
def __init__(self, file, size):
self.size = size
self.starts = []
self.cache = {}
self.file_to_words(file)
self.parse_words()
You can’t perform that action at this time.