Add random.js

This commit is contained in:
Ceda EI 2019-02-11 00:58:28 +05:30
parent 7f2f2173a0
commit 6c8bb4000b
2 changed files with 2 additions and 1758 deletions

2
commands/random.js Normal file
View File

@ -0,0 +1,2 @@
module.exports = (list = []) => (n = 1) =>
Array(n).fill(0).map(list[Math.floor(Math.random() * list.length)]);

File diff suppressed because it is too large Load Diff