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