MCPcopy Create free account
hub / github.com/TraderAlice/OpenAlice / pick

Function pick

src/workspaces/petname-id.ts:173–175  ·  view source on GitHub ↗
(items: readonly T[], randomInt: RandomInt)

Source from the content-addressed store, hash-verified

171}
172
173function pick<T>(items: readonly T[], randomInt: RandomInt): T {
174 return items[randomInt(items.length)]!
175}

Callers 1

generatePetnameIdFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected