MCPcopy Index your code
hub / github.com/TeaCoder52/patcode / pickDigit

Function pickDigit

src/utils.ts:30–32  ·  view source on GitHub ↗
(digits: string[], rng: () => number)

Source from the content-addressed store, hash-verified

28}
29
30export function pickDigit(digits: string[], rng: () => number): string {
31 return pickRandom(digits, rng)
32}
33
34export function pickTwoDifferentDigits(
35 digits: string[],

Callers 4

generateBankingCodeFunction · 0.90
createCustomContextFunction · 0.90
pickTwoDifferentDigitsFunction · 0.85
pickThreeDifferentDigitsFunction · 0.85

Calls 1

pickRandomFunction · 0.85

Tested by

no test coverage detected