const randomFromArray = (array: number[]) => array[Math.floor(Math.random() * array.length)]; export default randomFromArray;