Files
PythonPlayground/randomPwd.py

21 lines
379 B
Python
Raw Permalink Normal View History

2021-08-28 20:40:51 +02:00
import random
import string
def randomPwd(length):
chars = string.ascii_letters + string.digits
pwd = ''.join(random.choice(chars) for i in range(length))
print(pwd)
# 10 Random Passwords
randomPwd(18)
randomPwd(18)
randomPwd(18)
randomPwd(18)
randomPwd(18)
randomPwd(18)
randomPwd(18)
randomPwd(18)
randomPwd(18)
randomPwd(18)
randomPwd(18)
#######################