JavaScript
// How does the email begin
let emailAdd = "testk.platform";
// Email domain
let emailDomain = "@gmail.com";
// Total generated emails
let entries = 100000;
// dummy list of first and last names
var firstName = ["Excited", "Anxious", "Overweight", "Demonic", "Jumpy", "Misunderstood", "Squashed", "Broad", "Crooked", "Curved", "Deep", "Even", "Excited", "Anxious", "Overweight", "Demonic", "Jumpy", "Misunderstood", "Squashed", "Gargantuan", "Broad", "Crooked", "Curved", "Deep", "Even", "Flat", "Hilly", "Jagged", "Round", "Shallow", "Square", "Steep", "Straight", "Thick", "Thin", "Cooing", "Deafening", "Faint", "Harsh", "Hissing", "Hushed", "Husky", "Loud", "Melodic", "Moaning", "Mute", "Noisy", "Purring", "Quiet", "Raspy", "Screeching", "Shrill", "Silent", "Soft", "Squeaky", "Squealing", "Thundering", "Voiceless", "Whispering"]
var lastName = ["Taco", "OperatingSystem", "Sphere", "Watermelon", "Cheeseburger", "ApplePie", "Spider", "Dragon", "RemoteControl", "Soda", "BarbieDoll", "Watch", "PurplePen", "DollarBill", "StuffedAnimal", "HairClip", "Sunglasses", "Shirt", "Purse", "Towel", "Hat", "Camera", "SanitizerBottle", "Photo", "DogBone", "HairBrush", "BirthdayCard"]
// a function to extract a random list item
function nameGenerator(list) {
let name = list[Math.floor(Math.random() * list.length)];
return name
}
// for loop to generate the requested number of entries
for (let i = 1; i < entries + 1; i++) {
document.getElementById("test").innerHTML +=
"<span>" +
emailAdd + "+" + i +
emailDomain +
/* ",09/19/2023," +
nameGenerator(firstName) +
"," +
nameGenerator(lastName) + */
"</span>"
}