traxxx/src/tools/names.js

48 lines
613 B
JavaScript

'use strict';
const pickRandom = require('../utils/pick-random');
const firstMale = [
'John',
'James',
'Biggus',
'Mick',
];
const lastMale = [
'Dickus',
'Strong',
'Slayer',
'Gun',
'Pistol',
];
const firstFemale = [
'Kimmy',
'Summer',
'Jessica',
'Rose',
'Sky',
'Skye',
];
const lastFemale = [
'Olsen',
'Flower',
'Star',
'Dior',
];
const lastGeneric = [
'Steele',
'White',
];
function init() {
const names = Array.from({ length: 1000 }, () => `${pickRandom([...firstMale, ...firstFemale])} ${pickRandom([...lastMale, ...lastFemale, ...lastGeneric])}`);
console.log(names);
}
init();