From c77d4fc27a7235f206e2ae771c47a57d6cc18df4 Mon Sep 17 00:00:00 2001 From: Cody Logan Date: Tue, 7 Jan 2020 16:28:01 -0800 Subject: Initial commit --- alphanum/alphanum.py | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 alphanum/alphanum.py (limited to 'alphanum/alphanum.py') diff --git a/alphanum/alphanum.py b/alphanum/alphanum.py new file mode 100644 index 0000000..6fc2f03 --- /dev/null +++ b/alphanum/alphanum.py @@ -0,0 +1,5 @@ +from random import choices + + +def generate(length=1) -> str: + return ''.join(choices('abcdefghijklmnopqrstuvwxyz0123456789', k=length)) -- cgit v1.2.3