Add random.js
This commit is contained in:
parent
7f2f2173a0
commit
6c8bb4000b
|
@ -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
Loading…
Reference in New Issue