@xaroth8088/random-names
Version:
A random name generator for all kinds of things
21 lines (20 loc) • 2.94 kB
JavaScript
export default function postApocalypticSocietys() {
let names;
let rnd;
let rnd1;
const names1 = ['Abandoned', 'Aberration', 'Abnormality', 'Abomination', 'Acid', 'Acidic', 'Acrid', 'Amnesia', 'Anomaly', 'Armageddon', 'Asylum', 'Babylon', 'Black Ashes', 'Black Dust', 'Black Earth', 'Black Moon', 'Black Rain', 'Black Sun', 'Blessed', 'Burning World', 'Cataclysm', 'Chaos', 'Cockroach', 'Decimation', 'Desolate', 'Deviant', 'Dominance', 'Eclipse', 'Ember', 'Enigma', 'Eternal', 'Eternal Darkness', 'Eternal Eclipse', 'Eternal Fire', 'Eternal Void', 'Evolution', 'Extinction', 'Fallen Star', 'Fallout', 'False Prophet', 'Forsaken', 'Found Fortune', 'Gifts of Mutation', 'Godless', 'Honor', 'Honorbound', 'Human Expiration', 'Human Extinction', 'Human Hunter', 'Isolation', 'Law Abiding', 'Lawless', 'Legion', 'Limbo', 'Lost Soul', 'Martial Law', 'Metamorphosis', 'Miracle', 'Misery', 'Monster', 'Monster Hunter', 'Mutant', 'Mutant Hunter', 'Myriad', 'Neo-Human', 'New Friends', 'New God', 'New Haven', 'New Hope', 'New Law', 'New Monster', 'New Moon', 'New Prophet', 'New Start', 'New Sun', 'New Supremacy', 'New World', 'No Legacy', 'Nuclear', 'Oath', 'Oblivion', 'Old Ruins', 'Orphan', 'Our Legacy', 'Outcast', 'Paragon', 'Phoenix', 'Prodigy', 'Rebirth', 'Red Moon', 'Red Sun', 'Reincarnation', 'Resurrection', 'Revelation', 'Risen Ashes', 'Sanctuary', 'Survivor', 'Total Eclipse', 'Traitor', 'Warhead'];
const names2 = ['Alliance', 'Association', 'Brotherhood', 'Clan', 'Coalition', 'Confederacy', 'Cooperative', 'Federation', 'Gang', 'League', 'Order', 'Republic', 'Syndicate', 'Tribe', 'Nation', 'Union'];
const names3 = ['Abandoned', 'Aberrations', 'Abnormalities', 'Invincible', 'Abominations', 'Anomalies', 'Armageddons', 'Asylum', 'Babylonians', 'Black Ashes', 'Blessed', 'Chosen Ones', 'Cleansed', 'Cockroaches', 'Dead', 'Defiance', 'Deviants', 'Droplets', 'Enigmas', 'Eternals', 'Evolved', 'Expired', 'Extinct', 'Fallen', 'Flock', 'Forsaken', 'Freaks', 'Giants', 'Gifted', 'Godless', 'Hermits', 'Hidden', 'Homeless', 'Honorbound', 'Honorless', 'Horned Ones', 'Immune', 'Impure', 'Infected', 'Invisible', 'Law', 'Lawless', 'Legion', 'Living', 'Lost Ones', 'Lost Souls', 'Miracles', 'Monsters', 'Mutants', 'Myriad', 'Neo-Human', 'New Friends', 'New Humans', 'New Monsters', 'Newmans', 'Orphans', 'Outcasts', 'Paragons', 'Phantoms', 'Phoenixes', 'Prodigies', 'Pure', 'Purified', 'Rats', 'Reincarnated', 'Resurrected', 'Risen', 'Roaches', 'Salvation', 'Shadows', 'Stalkers', 'Survivors', 'Tails', 'Tormented', 'Vanished', 'Walkers', 'Warheads', 'White Ashes'];
const i = Math.floor(Math.random() * 10);
{
if (i < 5) {
rnd = Math.floor(Math.random() * names1.length);
rnd1 = Math.floor(Math.random() * names2.length);
names = `${names1[rnd]} ${names2[rnd1]}`;
} else {
rnd = Math.floor(Math.random() * names3.length);
names = `The ${names3[rnd]}`;
}
return names;
}
}