const object = {
a: 0,
b: 0,
c: 0
};
const map = new Map([
['a', 0],
['b', 0],
['c', 0]
]);
object.hasOwnProperty(Object.keys(object)[Math.floor(Math.random() * Object.keys(object).length)]);
map.has(map.keys()[Math.floor(Math.random() * map.size)]);