Skip to content

Instantly share code, notes, and snippets.

@dextel2
Created November 22, 2019 08:53
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dextel2/d496e55f34e0e8a0eeb39ee24eb70723 to your computer and use it in GitHub Desktop.
Save dextel2/d496e55f34e0e8a0eeb39ee24eb70723 to your computer and use it in GitHub Desktop.
Random Email Generator
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