Logan Zoellner commited on
Commit
0810df2
·
1 Parent(s): 57c0b1a

split doesn't work the way I think it does

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -21,9 +21,9 @@ examples = [["river"], ["night"], ["trees"],["table"],["laughs"]]
21
 
22
  def npc_randomize():
23
  #name is a random combination of syllables
24
- vowels = "aeiou".split()
25
- constants = "bcdfghjklmnpqrstvwxyz".split()
26
- seperators="-'".split()
27
  name =""
28
  for i in range(random.randint(2,4)):
29
  name += random.choice(constants)
@@ -32,6 +32,8 @@ def npc_randomize():
32
  name += random.choice(constants)
33
  if random.random()<0.1:
34
  name += random.choice(seperators)
 
 
35
 
36
  races="""
37
  Dwarf
 
21
 
22
  def npc_randomize():
23
  #name is a random combination of syllables
24
+ vowels = list("aeiou")
25
+ constants = list("bcdfghjklmnpqrstvwxyz")
26
+ seperators=list("-'")
27
  name =""
28
  for i in range(random.randint(2,4)):
29
  name += random.choice(constants)
 
32
  name += random.choice(constants)
33
  if random.random()<0.1:
34
  name += random.choice(seperators)
35
+
36
+
37
 
38
  races="""
39
  Dwarf