Add random.js
This commit is contained in:
2
commands/random.js
Normal file
2
commands/random.js
Normal file
@@ -0,0 +1,2 @@
|
||||
module.exports = (list = []) => (n = 1) =>
|
||||
Array(n).fill(0).map(list[Math.floor(Math.random() * list.length)]);
|
||||
1758
rand_questions.txt
1758
rand_questions.txt
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user