62 lines
2.1 KiB
JavaScript
62 lines
2.1 KiB
JavaScript
/**
|
|
* Created by mdonnel on 20/04/2017.
|
|
*/
|
|
|
|
Array.prototype.random = function () {
|
|
return this[Math.floor((Math.random() * this.length))];
|
|
};
|
|
|
|
|
|
const left = ['Alabama',
|
|
'Alaska',
|
|
'Arizona',
|
|
'Maryland',
|
|
'Nevada',
|
|
'Mexico',
|
|
'Texas',
|
|
'Utah',
|
|
'Glasgow',
|
|
'Inverness',
|
|
'Edinburgh',
|
|
'Dumbarton',
|
|
'Balloch',
|
|
'Renton',
|
|
'Cardross',
|
|
'Dundee',
|
|
'Paisley',
|
|
'Hamilton',
|
|
'Greenock',
|
|
'Falkirk',
|
|
'Irvine',
|
|
'Renfrew',
|
|
'Erskine',
|
|
'London',
|
|
'Hammersmith',
|
|
'Islington',
|
|
'Silver', 'Black', 'Yellow', 'Purple', 'White', 'Pink', 'Red', 'Orange', 'Brown', 'Green', 'Blue',
|
|
'Amber', 'Aqua', 'Azure', 'Bronze', 'Coral', 'Copper', 'Crimson', 'Cyan', 'Ginger', 'Gold', 'Indigo', 'Jade'
|
|
|
|
];
|
|
|
|
const right = ['Aganju', 'Cygni', 'Akeron', 'Antares', 'Aragoth', 'Ardus', 'Carpenter',
|
|
'Cooper', 'Dahin', 'Capella', 'Endriago', 'Gallina', 'Fenris', 'Freya', 'Glenn', 'Grissom',
|
|
'Jotunheim', 'Kailaasa', 'Lagarto', 'Muspelheim', 'Nifleheim', 'Primus', 'Vega', 'Ragnarok',
|
|
'Shepard', 'Slayton', 'Tarsis', 'Mercury', 'Venus', 'Mars', 'Earth', 'Terra', 'Jupiter',
|
|
'Saturn', 'Uranus', 'Neptune', 'Pluto', 'Europa', 'Ganymede', 'Callisto', 'Titan', 'Juno',
|
|
'Eridanus', 'Scorpius', 'Crux', 'Cancer', 'Taurus', 'Lyra', 'Andromeda', 'Virgo', 'Aquarius',
|
|
'Cygnus', 'Corvus', 'Taurus', 'Draco', 'Perseus', 'Pegasus', 'Gemini', 'Columbia', 'Bootes',
|
|
'Orion', 'Deneb', 'Merope', 'Agate', 'Amber', 'Beryl', 'Calcite', 'Citrine', 'Coral', 'Diamond',
|
|
'Emerald', 'Garnet', 'Jade', 'Lapis', 'Moonstone', 'Obsidian', 'Onyx', 'Opal', 'Pearl', 'Quartz',
|
|
'Ruby', 'Sapphire', 'Topaz', 'Iron', 'Lead', 'Nickel', 'Copper', 'Zinc', 'Tin', 'Manes', 'Argon',
|
|
'Neon', 'Alpha', 'Bravo', 'Charlie', 'Delta', 'Echo', 'Foxtrot', 'Golf', 'Hotel', 'India', 'Juliett',
|
|
'Kilo', 'Lima', 'Mike', 'November', 'Oscar', 'Papa', 'Quebec', 'Romeo', 'Sierra', 'Tango', 'Uniform',
|
|
'Victor', 'Whisky', 'Xray', 'Yankee', 'Zulu'];
|
|
|
|
|
|
function gen(){
|
|
return (`${left.random() } ${ right.random() }`);
|
|
}
|
|
|
|
|
|
module.exports = {gen};
|