MCPcopy Create free account
hub / github.com/codemix/graph / nextRandom

Function nextRandom

packages/text-search/src/performance.test.ts:295–298  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

293 // Use a simple seeded random for reproducibility
294 let random = seed;
295 const nextRandom = () => {
296 random = (random * 1103515245 + 12345) & 0x7fffffff;
297 return random / 0x7fffffff;
298 };
299
300 for (let i = 0; i < wordCount; i++) {
301 // Mix common words with technical terms (70% common, 30% technical)

Callers 2

generateDocumentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected