This commit is contained in:
ChomeNS 2022-08-15 20:46:04 +07:00
parent e1647e6603
commit 55c4e03be1

View file

@ -9,8 +9,10 @@ function getRandomItem(arr) {
return item;
}
const username = getRandomItem(names) + getRandomItem(names) + (10 + Math.floor(Math.random() * 90));
function genUsername() {
const username = getRandomItem(names) + getRandomItem(names) + (10 + Math.floor(Math.random() * 90));
module.exports = function () {
return username;
};
}
module.exports = genUsername;