@xaroth8088/random-names
Version:
A random name generator for all kinds of things
38 lines (37 loc) • 4.2 kB
JavaScript
export default function mutantSpecies() {
let names;
let rnd;
let rnd2;
let rnd3;
let rnd4;
let rnd5;
const names1 = ['Aberrations', 'Abnormalities', 'Invincible', 'Abominations', 'Anomalies', 'Blessed', 'Chosen Ones', 'Cleansed', 'Enigmas', 'Eternals', 'Freaks', 'Giants', 'Gifted', 'Horned Ones', 'Impure', 'Infected', 'Lost Ones', 'Lost Souls', 'Miracles', 'Monsters', 'Newmans', 'Paragons', 'Phantoms', 'Phoenixes', 'Stalkers', 'Tails', 'Walkers', 'Transparent', 'Translucent', 'Luminescent', 'Green Skins', 'Triclopses', 'Cyclopses', 'Beaks', 'Fins', 'Wings', 'Fangs', 'Claws', 'Pelts', 'Behemoths', 'Fiends', 'Savages', 'Unnaturals', 'Miscreants', 'Miscreations', 'Grotesque', 'Misshapen', 'Gills', 'Hellions', 'Horrors', 'Pincers', 'Eyeless', 'Faceless', 'Rock Skins', 'Leather Skins', 'Dwellers', 'Otherworldly', 'Forsaken', 'Upgraded', 'Beasts', 'Creatures', 'Missfits', 'Howlers', 'Scales', 'Scaled Ones', 'Tentacles', 'Tentacled', 'Silver Eyes', 'Burdened', 'Marked', 'Horns', 'Horned Ones', 'Maniacs', 'Bugs', 'Creeps', 'Sirens', 'Finned Ones', 'Fins', 'Bended', 'Four Legged', 'Quadrupeds', 'Decapeds', 'Armored', 'Blue Skins', 'Black Skins', 'Serpents', 'Arachnids', 'Arachnumans', 'Serpumans', 'Hogmen', 'Demons', 'Evolved', 'Devolved', 'Deviants', 'Perverse', 'Irregularities', 'Synthetics', 'Nonentities', 'Beings', 'Entities', 'Creatures', 'Critters', 'Seedlings', 'Shrubs', 'Weeds', 'Vines', 'Progressed', 'Aquatic', 'Aquas', 'Aerials', 'Avians', 'Aviumans', 'Transformed', 'Furs', 'Shells', 'Shelled Ones'];
const names2 = ['Abna', 'Abno', 'Ani', 'Ano', 'Arach', 'Arthro', 'Ave', 'Avi', 'Barba', 'Bea', 'Beas', 'Behe', 'Bru', 'Canin', 'Car', 'Care', 'Carni', 'Chi', 'Chime', 'Chiro', 'Cla', 'Crea', 'Cree', 'Crit', 'Cro', 'Croco', 'Crus', 'Cryp', 'Dasy', 'Devi', 'Dice', 'Felin', 'Gas', 'Gil', 'Heli', 'Inno', 'Levi', 'Loxo', 'Lupu', 'Modi', 'Mus', 'Muscu', 'Mut', 'Nea', 'Neo', 'Pan', 'Permu', 'Prima', 'Probo', 'Psy', 'Rufu', 'Serpen', 'Strigi', 'Tigri', 'Ur', 'Ursi', 'Ver', 'Vermi', 'Vici', 'Vul'];
const names3 = ['barias', 'bines', 'bites', 'crians', 'cries', 'crites', 'garians', 'garis', 'gees', 'gians', 'gites', 'narians', 'neans', 'nees', 'nians', 'nines', 'nirians', 'nites', 'ratis', 'rees', 'sees', 'sias', 'tarians', 'tasians', 'teans', 'tees', 'tians', 'tines', 'tirians', 'tites'];
const names4 = ['b', 'c', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 'm', 'n', 'p', 'q', 'r', 's', 't', 'v', 'w', 'x', 'z', 'b', 'br', 'bl', 'c', 'cl', 'cr', 'd', 'dr', 'f', 'fr', 'fl', 'g', 'gr', 'gl', 'gn', 'h', 'j', 'k', 'kr', 'kl', 'kn', 'm', 'n', 'p', 'pr', 'pl', 'q', 'qr', 'ql', 'r', 's', 'st', 'sr', 'str', 'sl', 't', 'tr', 'tl', 'v', 'vl', 'vr', 'w', 'wr', 'x', 'z'];
const names5 = ['a', 'e', 'i', 'o', 'u', 'y'];
const names6 = ['b', 'c', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 'm', 'n', 'p', 'q', 'r', 's', 't', 'v', 'w', 'x', 'z', 'b', 'br', 'bl', 'c', 'cl', 'cr', 'd', 'dr', 'f', 'fr', 'fl', 'g', 'gr', 'gl', 'gn', 'h', 'j', 'k', 'kr', 'kl', 'kn', 'm', 'n', 'p', 'pr', 'pl', 'q', 'qr', 'ql', 'r', 's', 'st', 'sr', 'str', 'sl', 't', 'tr', 'tl', 'v', 'vl', 'vr', 'w', 'wr', 'x', 'z', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''];
const names7 = ['', 'a', 'e', 'i', 'o', 'u', 'a', 'e', 'i', 'o', 'u', 'y', 'a', 'e', 'i', 'o', 'u', 'a', 'e', 'i', 'o', 'u', 'y', 'a', 'e', 'i', 'o', 'u', 'a', 'e', 'i', 'o', 'u', 'y'];
const i = Math.floor(Math.random() * 10);
{
if (i < 4) {
rnd = Math.floor(Math.random() * names1.length);
names = `The ${names1[rnd]}`;
} else if (i < 7) {
rnd = Math.floor(Math.random() * names2.length);
rnd2 = Math.floor(Math.random() * names3.length);
names = names2[rnd] + names3[rnd2];
} else {
rnd = Math.floor(Math.random() * names4.length);
rnd2 = Math.floor(Math.random() * names5.length);
rnd3 = Math.floor(Math.random() * names6.length);
rnd4 = Math.floor(Math.random() * names7.length);
if (rnd3 > 64) {
rnd4 = 0;
}
rnd5 = Math.floor(Math.random() * names3.length);
names = names4[rnd] + names5[rnd2] + names6[rnd3] + names7[rnd4] + names3[rnd5];
}
return names;
}
}