MCPcopy Create free account
hub / github.com/BabylonSocial/babylon / sampleRandom

Function sampleRandom

packages/engine/src/utils/randomization.ts:77–84  ·  view source on GitHub ↗
(
  array: T[],
  count: number,
  rng: RngFunction = Math.random
)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 5

getActiveQuestionsFunction · 0.90
getTrendingPostsFunction · 0.90
getRecentEventsFunction · 0.90

Calls 1

shuffleArrayFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…