MCPcopy
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
90function randomIndex<T>(array: T[]) {
91 return Math.floor(Math.random() * array.length);
92}
93
94populate()
95 .catch((e) => {

Callers 1

populateFunction · 0.85

Calls 1

randomMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…