refactoring and adding limit command option

This commit is contained in:
2023-01-14 21:44:02 -03:00
parent 205b865592
commit 25bd8f306b
9 changed files with 159 additions and 130 deletions

View File

@@ -0,0 +1,5 @@
function getRandomElementFromArray(arr) {
return arr[Math.floor((Math.random() * arr.length))];
}
module.exports = getRandomElementFromArray;