MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / deterministicRandom

Function deterministicRandom

src/compute-engine/numerics/random.ts:15–18  ·  view source on GitHub ↗
(seed: number)

Source from the content-addressed store, hash-verified

13 * §4 hold.
14 */
15
16/**
17 * Cap on the number of elements a random operator will eagerly materialize.
18 * An unbounded eager allocation is an uncatchable heap-OOM, so operators refuse
19 * past this bound rather than attempt it.
20 */
21export const MAX_RANDOM_ELEMENT_COUNT = 1_000_000;

Callers 3

collections.tsFile · 0.90
core.tsFile · 0.90
statistics.tsFile · 0.90

Calls 2

sinMethod · 0.80
floorMethod · 0.45

Tested by

no test coverage detected