0% found this document useful (0 votes)
164 views

Random Email Python

This Python script generates random email addresses by: 1) Randomly selecting characters to create an alphabetic username part between 3-10 characters long 2) Randomly appending 0-4 numeric characters 3) Randomly choosing a domain from a list and appending it to the username to create a full email address

Uploaded by

Code Guru
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
164 views

Random Email Python

This Python script generates random email addresses by: 1) Randomly selecting characters to create an alphabetic username part between 3-10 characters long 2) Randomly appending 0-4 numeric characters 3) Randomly choosing a domain from a list and appending it to the username to create a full email address

Uploaded by

Code Guru
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

# Generate random email address

import random
charSet =
['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u
','v','q','x','y','z']
numSet = ['0','1','2','3','4','5','6','7','8','9']
domSet =
["gmail.com","yahoo.com","hotmail.com","aol.com","hotmail.co.uk","hotmail.fr","msn.
com","yahoo.fr","wanadoo.fr","orange.fr","comcast.net","yahoo.co.uk","yahoo.com.br"
,"yahoo.co.in","live.com","rediffmail.com","free.fr","gmx.de","web.de","yandex.ru",
"ymail.com","libero.it","outlook.com","uol.com.br","bol.com.br","mail.ru","cox.net"
,"hotmail.it","sbcglobal.net","sfr.fr","live.fr","verizon.net","live.co.uk","google
mail.com","yahoo.es","ig.com.br","live.nl","bigpond.com","terra.com.br","yahoo.it",
"neuf.fr","yahoo.de","alice.it","rocketmail.com","att.net","laposte.net","bellsouth
.net","yahoo.in","hotmail.es","charter.net","yahoo.ca","yahoo.com.au","rambler.ru",
"hotmail.de","tiscali.it","shaw.ca","yahoo.co.jp","sky.com","earthlink.net","optonl
ine.net","freenet.de","t-
online.de","aliceadsl.fr","virgilio.it","home.nl","qq.com","telenet.be","me.com","y
ahoo.com.ar","tiscali.co.uk","yahoo.com.mx","voila.fr","gmx.net","mail.com","planet
.nl","tin.it","

live.it","ntlworld.com","arcor.de","yahoo.co.id","frontiernet.net","hetnet.nl","liv
e.com.au","yahoo.com.sg","zonnet.nl","club-
internet.fr","juno.com","optusnet.com.au","blueyonder.co.uk","bluewin.ch","skynet.b
e","sympatico.ca","windstream.net","mac.com","centurytel.net","chello.nl","live.ca"
,"aim.com","bigpond.net.au"]
mytext = ""
rnum = 0

# generate alphabetic part of username. Min length 3 and max length 10


for i in range (random.randint(3,10)):
rnum = random.randint(0,len(charSet)-1)
#print(rnum)
mytext = mytext + charSet[rnum]

# generate numeric part of username. Min length 0 and max length 4


for i in range( random.randint(0,4)):
rnum = random.randint(0,len(numSet)-1)
#print(rnum)
mytext = mytext + numSet[rnum]

# join alphabetic & numeric part of username and attach email domain
rnum = random.randint(0,len(domSet)-1)
mytext = mytext+ "@" + domSet[rnum]

print(mytext)

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy