Email generator for discord
Here is a simple email generator for Discord:
Email Generator for Discord
This script generates a random email address in the format [email protected]
. You can customize the domain and the length of the username.
Code:
import random
import string
def generate_email(username, domain, length):
# Generate a random username
random_username = ''.join(random.choices(string.ascii_lowercase + string.digits, k=length))
# Create the email address
email = f"{username}{random_username}@{domain}"
return email
# Example usage:
username = "john"
domain = "example.com"
length = 5
email = generate_email(username, domain, length)
print(email)
Output:
[email protected]
How it works:
- The script generates a random username using a combination of lowercase letters and digits.
- The script creates an email address by concatenating the username, a random username, and the domain.
- The script returns the generated email address.
Customization:
- You can customize the domain by changing the
domain
variable. - You can customize the length of the username by changing the
length
variable.
Limitations:
- This script generates a random email address, but it's not guaranteed to be unique.
- This script does not check if the generated email address is already in use.
Security:
- This script generates a random email address, but it's not secure. It's recommended to use a more secure method to generate email addresses, such as using a cryptographically secure pseudo-random number generator.