Commit 6435b5b3 authored by Elizabeth Myers's avatar Elizabeth Myers 💬

Try weighing results towards 8

parent 2aa61f46
......@@ -82,7 +82,11 @@ class Generator:
def generate(self):
""" Generate an 8.3 filename """
filename = ""
length = random.randint(6, 11)
if random.randint(0, 5) == 5:
# Random chance to use a length besides 8
length = random.randint(6, 11)
else:
length = 8
minslot = 1
while len(filename) < length:
maxslot = length - len(filename) - 1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment