Name changed for easy to find.
This commit is contained in:
2
test/randomIntArrayInRange/randomIntArrayInRange.js
Normal file
2
test/randomIntArrayInRange/randomIntArrayInRange.js
Normal file
@ -0,0 +1,2 @@
|
||||
module.exports = randomIntArrayInRange = (min, max, n = 1) =>
|
||||
Array.from({ length: n }, () => Math.floor(Math.random() * (max - min + 1)) + min);
|
||||
Reference in New Issue
Block a user