Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/triggerdotdev/trigger.dev
/ randomIndex
Function
randomIndex
apps/webapp/prisma/populate.ts:90–92 ·
view source on GitHub ↗
(array: T[])
Source
from the content-addressed store, hash-verified
88
}
89
90
function
randomIndex<T>(array: T[]) {
91
return
Math.floor(Math.random() * array.length);
92
}
93
94
populate()
95
.catch((e) => {
Callers
1
populate
Function · 0.85
Calls
1
random
Method · 0.80
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…