export const randomElement = (arr: T[]): T => arr[Math.floor(Math.random() * arr.length)]