4 lines
177 B
JavaScript
4 lines
177 B
JavaScript
const randomIntArrayInRange = (min, max, n = 1) =>
|
|
Array.from({ length: n }, () => Math.floor(Math.random() * (max - min + 1)) + min);
|
|
module.exports = randomIntArrayInRange;
|