src/random_name.js
function (number, name_type, create) {
		const names = { male: [], female: [] };
		if (typeof create === 'undefined') { create = false; }
		if (typeof number === 'undefined') { number = 10; }
		if (typeof name_type === 'undefined' || name_type === '') {
			name_type = 'random';
		}
		
		for (let i = 1; i <= number; i++) {
			const gender = (i <= Math.ceil(number / 2)) ? 'male' : 'female';
			if (create && name_type !== 'holmesian' && name_type !== 'demonic') {
				names[gender].push(createName(name_type, gender, true));
			} else {
				names[gender].push(selectName(name_type, gender));
			}
		}
		return names;
	}
function (number, name_type, create) {
		const names = { male: [], female: [] };
		if (typeof create === 'undefined') { create = false; }
		if (typeof number === 'undefined') { number = 10; }
		if (typeof name_type === 'undefined' || name_type === '') {
			name_type = 'random';
		}
		
		for (let i = 1; i <= number; i++) {
			const gender = (i <= Math.ceil(number / 2)) ? 'male' : 'female';
			if (create && name_type !== 'holmesian' && name_type !== 'demonic') {
				names[gender].push(createName(name_type, gender, true));
			} else {
				names[gender].push(selectName(name_type, gender));
			}
		}
		return names;
	}
function ( number , name_type , create ) { const names = { male : [ ] , female : [ ] } ; if ( typeof create === 'undefined' ) { create = false ; } if ( typeof number === 'undefined' ) { number = 10 ; } if ( typeof name_type === 'undefined' || name_type === '' ) { name_type = 'random' ; } for ( let i = 1 ; i <= number ; i ++ ) { const gender = ( i <= Math . ceil ( number / 2 ) ) ? 'male' : 'female' ; if ( create && name_type !== 'holmesian' && name_type !== 'demonic' ) { names [ gender ] . push ( createName ( name_type , gender , true ) ) ; } else { names [ gender ] . push ( selectName ( name_type , gender ) ) ; } } return names ; }
Generate a bunch of names, half male, half female
@param {Number} [number=10] number of names in the list (half will be male, half will be female)
@param {String} [name_type] type of name or else it will randomly select
@param {Bool} [create=false] new names or just pick from list
@return {Object} arrays of names inside male/female property
Generate a bunch of names half male half female