export function randomInt(min: number, max: number): number { return Math.floor(Math.random() * (max - min + 1)) + min; } export function randomPick(arr: readonly T[]): T { return arr[Math.floor(Math.random() * arr.length)]; }