MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / pickRandom

Function pickRandom

source code/utils/words.ts:779–781  ·  view source on GitHub ↗

* Pick a random element from an array

(array: readonly T[])

Source from the content-addressed store, hash-verified

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

Callers 2

generateWordSlugFunction · 0.85
generateShortWordSlugFunction · 0.85

Calls 1

randomIntFunction · 0.85

Tested by

no test coverage detected