MCPcopy Create free account
hub / github.com/ChartGPU/ChartGPU / mulberry32

Function mulberry32

examples/scatter-density-1m/main.ts:11–20  ·  view source on GitHub ↗
(seed: number)

Source from the content-addressed store, hash-verified

9};
10
11const mulberry32 = (seed: number): (() => number) => {
12 let a = seed | 0;
13 return () => {
14 a |= 0;
15 a = (a + 0x6d2b79f5) | 0;
16 let t = Math.imul(a ^ (a >>> 15), 1 | a);
17 t ^= t + Math.imul(t ^ (t >>> 7), 61 | t);
18 return ((t ^ (t >>> 14)) >>> 0) / 4294967296;
19 };
20};
21
22const createPointsChunked = async (
23 count: number,

Callers 1

createPointsChunkedFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected