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