-
Notifications
You must be signed in to change notification settings - Fork 0
/
random human generator.py
32 lines (31 loc) · 1.02 KB
/
random human generator.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
from faker import Faker
faker = Faker()
Name = input("enter RND for random name(enter anything else for custom name): ")
if Name == 'RND':
Name = faker.name()
else:
Name = input("Enter Human name")
ADBOOL = input("do you want address?")
if ADBOOL == 'yes':
address = faker.address()
else:
address = None
EMBOOL = input("do you want email?(with google domain)")
if EMBOOL == 'yes':
email = faker.email(True, "google.com")
else:
email = None
CCBOOL = input("do you want Credit card address?(visa type only)")
if CCBOOL == 'yes':
Credit = faker.credit_card_number('visa')
else:
Credit = None
BDBOOL = input("do you want Birth Date?")
if BDBOOL == 'yes':
MINAGE = int(input("Enter minimum age (def = 0)"))
MAXAGE = int(input("Enter maximum age (def = 115)"))
birthday = faker.date_of_birth(None, MINAGE, MAXAGE)
else:
birthday = None
print("here's you data!")
print("Name", Name, "Address", address, "Email", email, "Credit Card", Credit, "Birth Date", birthday)