Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- import string
- def id_gen():
- fl_num = random.randint(1, 9)
- mid = random.randint(100, 999)
- id = str(fl_num)+str(mid)+str(fl_num)
- return int(id)
- def login_gen():
- login = random.sample(string.ascii_lowercase, 6)
- return ''.join(login)
- def password_gen():
- nums = random.sample(string.digits, 2)
- letter = random.sample(string.ascii_lowercase, 1)
- rest = random.sample(string.ascii_lowercase+string.ascii_uppercase+string.digits, 7)
- password = nums+letter+rest
- random.shuffle(password)
- return ''.join(password)
- def bd():
- id = id_gen()
- login = login_gen()
- password = password_gen()
- arr = (id, login, password)
- print(*arr)
- bd()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement