Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.