Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
8
83bot
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Elizabeth Myers
83bot
Commits
6435b5b3
Commit
6435b5b3
authored
Aug 27, 2018
by
Elizabeth Myers
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Try weighing results towards 8
parent
2aa61f46
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
eightdotthree.py
eightdotthree.py
+5
-1
No files found.
eightdotthree.py
View file @
6435b5b3
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment