Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
46
function
pickRandom<T>(arr: T[], rand: number): T {
47
return
arr[Math.floor(rand * arr.length)];
48
}
49
50
type
UniquePools = {
51
userAgents: string[];
Callers
1
generateRandomRecord
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected