* Pick a random element from an array
(array: readonly T[])
| 775 | * Pick a random element from an array |
| 776 | */ |
| 777 | function pickRandom<T>(array: readonly T[]): T { |
| 778 | return array[randomInt(array.length)]! |
| 779 | } |
| 780 | |
| 781 | /** |
| 782 | * Generate a random word slug in the format "adjective-verb-noun" |
no test coverage detected