1const randomArrayInRange = (min, max, n) => Array.from({ length: n }, () => Math.floor(Math.random() * (max - min + 1)) + min);
2
3// Example
4randomArrayInRange(1, 100, 10);
1funtion getRandomNumber(min, max) {
2min = Math.ceil(min);
3max = Math.floor(max);
4return Math.floor(Math.random() * (max-min) )
5}