consoleNames.js (2892B)
1 var nm3 = ["Box", "Cast", "Center", "Core", "Cube", "Drive", "Sphere", "Station", "System", "Zone", "Arcade", "Box", "Cade", "Cast", "Center", "Core", "Cube", "Drive", "Player", "Sphere", "Station", "System", "Vision", "Zone"]; 2 3 function nameGen() { 4 var nm1 = ["Aberrant", "Achievement", "Achiever", "Adventure", "Adventurer", "Agent", "Ambition", "Assistant", "Beast", "Beginning", "Buddy", "Canvas", "Challenger", "Champ", "Champion", "Chimera", "Click", "Cloud", "Clover", "Companion", "Creator", "Crystal", "Curiosity", "Delight", "Desire", "Diamond", "Dot", "Dreamscape", "Edge", "Enigma", "Event", "Feast", "Fest", "Flame", "Fluke", "Ghost", "Gift", "Guest", "Guide", "Heart", "Horn", "Host", "Image", "Impulse", "Jewel", "Level Up", "Light", "Master", "Mirage", "Moment", "Motion", "Omen", "Oracle", "Particle", "Phantom", "Playground", "Prism", "Reward", "Rhythm", "Scene", "Secret", "Sense", "Signal", "Smile", "Snowflake", "Spark", "Sparkle", "Specter", "Spell", "Spirit", "Sprite", "Station", "Taste", "Tempest", "Thrill", "Thunder", "Treat", "Trick", "Twist", "Veil", "Victory", "View", "Wish"]; 5 var nm2 = ["Aberrant", "Action", "Adventure", "Ambition", "Amusement", "Awe", "Beginning", "Boundless", "Buddy", "Challenge", "Challenger", "Champion", "Chance", "Child", "Childhood", "Chimera", "Collection", "Companion", "Courage", "Creation", "Creative", "Creator", "Crux", "Crystal", "Curiosity", "Desire", "Dimension", "Dream", "Emotion", "Enigma", "Entertainment", "Eternity", "Fantasy", "Fire", "Force", "Fortune", "Freedom", "Game", "Golden", "Grand", "Harmony", "Hyper", "Image", "Imagination", "Impulse", "Infinity", "Liberty", "Life", "Light", "Master", "Mirage", "Mystery", "Oracle", "Particle", "Phantom", "Play", "Pocket", "Power", "Prism", "Response", "Retro", "Rhythm", "Sentient", "Silver", "Smile", "Source", "Spark", "Specialist", "Specter", "Spell", "Start", "Super", "Surprise", "Switch", "Thrill", "Thunder", "Treat", "Vessel", "Victory", "Virtual", "Vision", "Voyage", "Voyager", "Wisdom", "World"]; 6 var br = ""; 7 var element = document.createElement("div"); 8 element.setAttribute("id", "result"); 9 for (i = 0; i < 10; i++) { 10 if (i < 5) { 11 rnd = Math.random() * nm1.length | 0; 12 names = "The " + nm1[rnd]; 13 nm1.splice(rnd, 1); 14 } else { 15 rnd = Math.random() * nm2.length | 0; 16 rnd2 = Math.random() * nm3.length | 0; 17 names = "The " + nm2[rnd] + " " + nm3[rnd2]; 18 nm2.splice(rnd, 1); 19 } 20 br = document.createElement('br'); 21 element.appendChild(document.createTextNode(names)); 22 element.appendChild(br); 23 } 24 if (document.getElementById("result")) { 25 document.getElementById("placeholder").removeChild(document.getElementById("result")); 26 } 27 document.getElementById("placeholder").appendChild(element); 28 }