-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
shuffle alphabet and ensure min length of 3 chars
- Loading branch information
1 parent
fe16284
commit 06f3874
Showing
2 changed files
with
19 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
You don't need the
list()
orlambda
here:return ''.join(random.Random(1234).sample(seq, len(seq)))
Also,
str
is a builtin and probably shouldn't be used as a variable.