1const randomInteger = (min, max) => Math.floor(Math.random() * (max - min + 1)) + min;
1const randomArrayInRange = (min, max, n) => Array.from({ length: n }, () => Math.floor(Math.random() * (max - min + 1)) + min);
2
3// Example
4randomArrayInRange(1, 100, 10);
1let object = random(0, 50);
2// making "object" a random number between 0 and 50.
3
4console.log(object);
5// printing object in the console