· 6 years ago · Jun 06, 2019, 03:14 PM
1import names
2import random
3import time
4
5for i in range(1000):
6
7 rand_email_type = random.randint(1,10)
8 email = ''
9 if(rand_email_type > 4 ):
10 email = '@gmail.com'
11 elif(rand_email_type == 1):
12 email = '@hotmail.com'
13 elif(rand_email_type == 2):
14 email = '@yahoo.com'
15 elif(rand_email_type == 3):
16 email = '@outlook.com'
17 elif(rand_email_type == 4):
18 email = '@hotmail.com'
19
20 rand_format_email = random.randint(1,6)
21 complement = ''
22 if(rand_format_email < 4):
23 complement = ''
24 elif(rand_format_email == 4):
25 complement = str(random.randint(30,99))
26 elif(rand_format_email > 4):
27 complement = str(random.randint(1,10))
28
29 fullname_or_firstname = random.randint(1,4)
30
31 name = ''
32 if(fullname_or_firstname < 3):
33 name = names.get_first_name()
34 else:
35 name = names.get_first_name() + names.get_last_name()
36
37 email = name + complement + email
38 final_email = email.lower()
39
40
41 print(final_email)
42 time.sleep(random.randint(1,10))