mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-14 18:54:55 -05:00
14 lines
451 B
JavaScript
14 lines
451 B
JavaScript
/* eslint-disable max-len */
|
|
names = ['Yeeish', 'Yeeish', 'Yee', 'Yee', 'Yeer', 'Yeeler', 'Eagler', 'Eagl',
|
|
'Darver', 'Darvler', 'Vool', 'Vigg', 'Vigg', 'Deev', 'Yigg', 'Yeeg'];
|
|
|
|
function getRandomItem(arr) {
|
|
const randomIndex = Math.floor(Math.random() * arr.length);
|
|
const item = arr[randomIndex];
|
|
|
|
return item;
|
|
}
|
|
|
|
const username = getRandomItem(names) + getRandomItem(names) + (10 + Math.floor(Math.random() * 90));
|
|
|
|
console.log(username);
|