function randomMinMax(min: number, max: number) {
return Math.floor(Math.random() * (max - min + 1) + min)
}
const rows:number = 3;
const cols:number = 4;
const arr: number[][] = new Array(rows).fill(new Array(cols).fill(randomMinMax(1, 10)));
console.log(arr);
/*
run:
[[2, 2, 2, 2], [2, 2, 2, 2], [2, 2, 2, 2]]
*/