MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / pickRandom

Function pickRandom

apps/web/src/scripts/usage/benchmark-insert-usage.ts:46–48  ·  view source on GitHub ↗
(arr: T[], rand: number)

Source from the content-addressed store, hash-verified

44}
45
46function pickRandom<T>(arr: T[], rand: number): T {
47 return arr[Math.floor(rand * arr.length)];
48}
49
50type UniquePools = {
51 userAgents: string[];

Callers 1

generateRandomRecordFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected