const getRandomObjectProperty = (object: object) => Object.keys(object)[Math.floor(Math.random() * Object.keys(object).length)]; const generateRandomHexColor = () => '#'+Math.floor(Math.random()*16777215).toString(16);