0
1
GGGiovanny Gongora
Generates an array of n random integers in the specified range.
const randomIntArrayInRange = (min: number, max: number, n: number = 1) =>
Array.from(
{ length: n },
() => Math.floor(Math.random() * (max - min + 1)) + min
);