@xaroth8088/random-names
Version:
A random name generator for all kinds of things
30 lines (29 loc) • 3.95 kB
JavaScript
export default function squads() {
let names;
let rnd;
let rnd2;
let rnd3;
const names1 = ['Alpha', 'Angel', 'Annihilation', 'Apache', 'Arachnid', 'Ash', 'Bane', 'Recon', 'Assault', 'Banshee', 'Barrage', 'Beast', 'Behemoth', 'Black Skull', 'Blast', 'Blitz', 'Bravo', 'Burning', 'Carnage', 'Cobra', 'Coyote', 'Crisis', 'Cyclone', 'Daemon', 'Danger', 'Demon', 'Disaster', 'Dragon', 'Electric', 'Elimination', 'Enigma', 'Ethereal', 'Extinction', 'Feral', 'Fiery', 'Fire', 'Firebolt', 'Flux', 'Frozen', 'Ghost', 'Grindstone', 'Guardian', 'Havoc', 'Hazard', 'Honor', 'Hurricane', 'Ice', 'Jackal', 'Jester', 'Leopard', 'Lightning', 'Lion', 'Mammoth', 'Marvel', 'Miracle', 'Mirage', 'Monster', 'Mutant', 'Nemesis', 'Nightmare', 'Omega', 'Oracle', 'Padlock', 'Panther', 'Phantom', 'Phoenix', 'Plague', 'Prodigy', 'Rage', 'Raid', 'Rattle', 'Ravage', 'Red Demon', 'Riot', 'Rogue', 'Rubble', 'Rumble', 'Scourge', 'Serpent', 'Shadow', 'Shatter', 'Silent', 'Silver', 'Skirmish', 'Spider', 'Spirit', 'Stampede', 'Storm', 'Surge', 'Thunder', 'Tiger', 'Titan', 'Turtle', 'Viper', 'Void', 'Whisper', 'White Skull', 'White Wolf', 'Wild', 'Wipe Out', 'Wolf', 'Wreckage'];
const names2 = ['Freaks', 'Alphas', 'Angels', 'Silver Angels', 'Hellhounds', 'Thunderbirds', 'Vikings', 'Arachnids', 'Ashes', 'Banshees', 'Beasts', 'Behemoths', 'Black Skulls', 'Cobras', 'Coyotes', 'Cyclones', 'Daemons', 'Demons', 'Dragons', 'Enigmas', 'Ethereals', 'Ferals', 'Firebolts', 'Ghosts', 'Guardians', 'Hurricanes', 'Jackals', 'Jesters', 'Leopards', 'Lightning Bolts', 'Lions', 'Mammoths', 'Marvels', 'Miracles', 'Monsters', 'Mutants', 'Nightmares', 'Omegas', 'Oracles', 'Padlocks', 'Panthers', 'Black Panthers', 'Silver Banshees', 'Phantoms', 'Phoenixes', 'Prodigies', 'Red Demons', 'Rogues', 'Serpents', 'Shadows', 'Spiders', 'Spirits', 'Stormwalkers', 'Rolling Thunders', 'Tigers', 'Titans', 'Turtles', 'Vipers', 'Whispers', 'White Skulls', 'White Wolves', 'Wolves', 'Barbarians', 'Wildlings', 'Black Masks', 'All Blacks', 'Fiends', 'War Turtles', 'Mongrels', 'Spooks', 'Silence', 'Scepters', 'Strikers', 'Lone Wolves', 'Black Angels', 'Black Vipers', 'Black Mambas', 'Silver Wolves', 'White Tigers', 'Black Lions', 'Silver Lions', 'Black Bulls', 'Invisible', 'Disguised', 'Mysteries', 'Coverts', 'Goliaths', 'Black Cats', 'Daggers', 'Blades', 'Eagles', 'Falcons', 'Hornets', 'Red Devils', 'Saints', 'Stripes', 'Hammers', 'Wasps', 'Red Dragons', 'Black Dragons', 'Braves', 'Golden Tigers', 'Knights', 'Street Dogs', 'Sharks', 'Scorpions', 'Flames', 'Mambas', 'Shields', 'Jaguars', 'Nightowls', 'Clockworks', 'Valkyries'];
const names3 = ['Advanced', 'Classified', 'Covert', 'Crisis', 'Disaster', 'Emergency', 'Extreme', 'Incident', 'Pressure', 'Situational', 'Special', 'Specialized', 'Standby', 'Stategic', 'Tactical', 'Trauma'];
const names4 = ['Airborne', 'Assault', 'Assemble', 'Combat', 'Command', 'Control', 'Evaluation', 'Counter', 'Engage', 'Force', 'Intelligence', 'Liberation', 'Maintenance', 'Management', 'Mobilization', 'Operation', 'Organization', 'Pursuit', 'Reinforce', 'Reconnaisance', 'Relief', 'Rescue', 'Response', 'Retaliation', 'Salvage', 'Service', 'Support', 'Task', 'Tracking', 'Training', 'Weapons'];
const names5 = ['Crew', 'Division', 'Squad', 'Squadron', 'Team', 'Unit'];
const names6 = ['Crew', 'Squad', 'Squadron'];
const i = Math.floor(Math.random() * 10);
{
if (i < 3) {
rnd = Math.floor(Math.random() * names1.length);
rnd2 = Math.floor(Math.random() * names6.length);
names = `The ${names1[rnd]} ${names6[rnd2]}`;
} else if (i < 6) {
rnd = Math.floor(Math.random() * names2.length);
names = `The ${names2[rnd]}`;
} else {
rnd = Math.floor(Math.random() * names3.length);
rnd2 = Math.floor(Math.random() * names4.length);
rnd3 = Math.floor(Math.random() * names5.length);
names = `${names3[rnd]} ${names4[rnd2]} ${names5[rnd3]}`;
}
return names;
}
}