function random(min, max) {
return Math.floor(Math.random() * (max - min)) + min;
}
let obj = {};
for (let i = 1; i < 101; i++) {
obj[i] = 0;
}
for (let i2 = 0; i2 < 100000; i2++) {
let randomNum = random(1,101)
obj[randomNum]++
}
console.log(obj);