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

Function customStrategy

test/random.test.ts:17–26  ·  view source on GitHub ↗
(ctx)

Source from the content-addressed store, hash-verified

15 strategy: Strategy.Custom,
16 rng,
17 customStrategy(ctx) {
18 const d1 = ctx.pickDigit()
19 const d2 = ctx.pickDigit()
20 const d3 = ctx.pickDigit()
21 const d4 = ctx.pickDigit()
22 const d5 = ctx.pickDigit()
23 const d6 = ctx.pickDigit()
24
25 return ctx.fromDigits([d1, d2, d3, d4, d5, d6])
26 },
27 })
28
29 const rng2 = fakeRngGenerator([0.1, 0.2, 0.3, 0.4])

Callers

nothing calls this directly

Calls 2

pickDigitMethod · 0.80
fromDigitsMethod · 0.80

Tested by

no test coverage detected