one-file-projects/pseudorandomquotes.py

23 lines
838 B
Python
Raw Normal View History

2014-08-31 06:14:41 +02:00
import random as pseudorandom
subjects = [
("is",['A car','Technology','A woman','A person','A dog','A cat','My neighbor','My fiancee','4chan','Obama']),
("am",['I']),
("are",['People','My friends','Teachers','Policemen','Politicians','Things'])
]
adjectives = ['dumb','gay','intelligent','evil','religious','sick','unhealthy','wrong','right','idiotic','lazy','green','black','whiny']
people = ['4chan','/g/','Anonymous','Random Citizen','That guy at school','My mother','My uncle']
def generate_quote():
verb,subjectlist = pseudorandom.choice(subjects)
subject = pseudorandom.choice(subjectlist)
adjective = pseudorandom.choice(adjectives)
person = pseudorandom.choice(people)
return '"%s %s %s" - %s' % (subject, verb, adjective, person)
for i in range(10):
print(generate_quote())