This commit is contained in:
julius 2023-06-18 13:11:37 +00:00
parent 5108346a46
commit 874d4c744a

View File

@ -80,7 +80,7 @@ def phrases(n: int = 4, nouns: int = 1, adjs: int = 2, pw: bool = False):
if pw: if pw:
# ps = [ "".join(p)[:-1] for p in [ [word + char for word, char in zip(p, [random_char() for w in p])] for p in phrases ] ] # ps = [ "".join(p)[:-1] for p in [ [word + char for word, char in zip(p, [random_char() for w in p])] for p in phrases ] ]
ps = [ ps = [
"".join([w.capitalize() for w,i in enumerate(p) if i > 0]) "".join([w.capitalize() for i,w in enumerate(p) if i > 0])
+ random_char() + random_char()
+ f"{random.randint(0,999):03d}" + f"{random.randint(0,999):03d}"
for p in phrases for p in phrases