Fake Name Generator
googlefc.controlledMessagingFunction
Fake Name Generator
googlefc.controlledMessagingFunction
const nameForm = document.getElementById('nameForm');
const resultContainer = document.getElementById('resultContainer');
nameForm.addEventListener('submit', function (event) {
event.preventDefault();
const gender = document.querySelector('input[name="gender"]:checked').value;
generateNames(gender);
});
function generateNames(gender) {
const maleNames = [
'John Doe',
'Michael Smith',
'Robert Johnson',
'David Williams',
'James Brown',
'William Davis',
'Joseph Miller',
'Charles Wilson',
'Thomas Anderson',
'Daniel Clark',
'Brian Martinez',
'Christopher Lee'
];
const femaleNames = [
'Mary Johnson',
'Jennifer Davis',
'Linda Wilson',
'Patricia Anderson',
'Susan Thompson',
'Jessica Martinez',
'Sarah Lee',
'Karen Rodriguez',
'Nancy Thomas',
'Lisa Lopez',
'Betty Taylor',
'Elizabeth Scott'
];
let names = [];
if (gender === 'male') {
names = maleNames;
} else {
names = femaleNames;
}
shuffleArray(names);
showResults(names.slice(0, 12));
}
function shuffleArray(array) {
for (let i = array.length - 1; i > 0; i--) {
const j = Math.floor(Math.random() * (i + 1));
[array[i], array[j]] = [array[j], array[i]];
}
}
function showResults(names) {
resultContainer.innerHTML = '';
for (let i = 0; i < names.length; i++) {
const nameBox = document.createElement('div');
nameBox.classList.add('name-box');
const nameElement = document.createElement('div');
nameElement.classList.add('name');
nameElement.textContent = names[i];
nameBox.appendChild(nameElement);
const copyButton = document.createElement('button');
copyButton.classList.add('copy-button');
copyButton.textContent = 'Copy';
nameBox.appendChild(copyButton);
copyButton.addEventListener('click', function () {
copyToClipboard(names[i]);
});
resultContainer.appendChild(nameBox);
}
}
function copyToClipboard(text) {
const textarea = document.createElement('textarea');
textarea.value = text;
document.body.appendChild(textarea);
textarea.select();
document.execCommand('copy');
document.body.removeChild(textarea);
alert('Copied to clipboard: ' + text);
}
About this:
A fake name generator is an online tool or software that creates fictitious names, along with other details such as addresses, phone numbers, and sometimes even email addresses. These generators are often used for privacy protection, testing applications, or creating placeholder data.
Here's a general overview of how a fake name generator typically works:
Randomization Algorithms: The generator uses algorithms to randomly select elements for each part of the fake identity, such as first name, last name, date of birth, etc. Some generators may use predefined lists for different cultural backgrounds to make the names sound realistic.
Data Categories: The generator usually includes various categories of information like name, address, phone number, email, date of birth, etc. Each category is filled with randomly generated data.
Cohesiveness: To make the generated identity seem more realistic, the generator often ensures that the information within a set (e.g., name, address, phone number) is cohesive and follows a typical format.
Cultural Considerations: Some generators take into account cultural naming conventions to create names that sound plausible for a given nationality or region.
Optional Customization: Depending on the generator, users might have the option to customize certain parameters, such as the country of origin, gender, or other specific details.
Instant Generation: Users can usually obtain a complete set of fake information with just a click of a button. This makes it convenient for those who need placeholder or anonymized data.
It's important to note that the use of fake name generators for any illegal or unethical activities is strongly discouraged. These tools are generally intended for harmless purposes, such as protecting privacy or testing software applications in a controlled environment. Always adhere to legal and ethical guidelines when using such tools.
Comments
Post a Comment
have u any doubt pls coment me