-
Notifications
You must be signed in to change notification settings - Fork 0
/
gen.py
28 lines (22 loc) · 914 Bytes
/
gen.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import random as rd
with open("noun.txt") as f:
noun = f.readlines()
with open("adverb.txt") as f:
adverb = f.readlines()
with open("verb.txt") as f:
verb = f.readlines()
with open("adj.txt") as f:
adj = f.readlines()
seed = "The %s %s and the %s %s %s %s my %s %s from the %s %s with a %s %s"
print(seed % (adj[rd.randint(0, 2047)].rstrip(),
noun[rd.randint(0, 2047)].rstrip(),
adj[rd.randint(0, 2047)].rstrip(),
noun[rd.randint(0, 2047)].rstrip(),
adverb[rd.randint(0, 2047)].rstrip(),
verb[rd.randint(0, 2047)].rstrip(),
adj[rd.randint(0, 2047)].rstrip(),
noun[rd.randint(0, 2047)].rstrip(),
adj[rd.randint(0, 2047)].rstrip(),
noun[rd.randint(0, 2047)].rstrip(),
adj[rd.randint(0, 2047)].rstrip(),
noun[rd.randint(0, 2047)].rstrip()))