Created
November 22, 2019 08:53
-
-
Save dextel2/d496e55f34e0e8a0eeb39ee24eb70723 to your computer and use it in GitHub Desktop.
Random Email Generator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var chars = 'abcdefghijklmnopqrstuvwxyz1234567890_'; | |
var string = ''; | |
var domainName = ["hitmail.com","rxdoc.biz","cox.com","126.net","126.com","comast.com","comast.net", "yandex.com","wegas.ru","twc.com","charter.com",]; | |
for (var index = 0; index < 15; index++) { | |
string += chars[Math.floor(Math.random() * chars.length)]; | |
} | |
var finalEmail = string + "@" + domainName[Math.floor(Math.random() * domainName.length)]; | |
console.log(finalEmail); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment