code wiki / _hdl_build / nx_viz_random.nx

nx_viz_random.nx

buildroot/runtime/_hdl_build/nx_viz_random.nx

1338 B29 linesdepth 2pulls 2 transitivereach 1 importersview sourcekind tooltopic viz
docsdependenciesstructsconstsfunctions

about

nx_viz_random.nx -- the DATA-RANDOM layer of the sovereign Nishi viz library (the d3-random core, bits-up). A deterministic seeded PRNG (LCG, MMIX constants; HIGH bits only -- low bits of an LCG are low quality) + uniform + central-limit gaussian (~N(0,1000^2)). For jitter / sampling / beeswarm / violin. license_tier: ORIGINAL

dependencies 1 imports · 1 importers

nx_syscalls.nx nx_viz_random.nx nx_viz_random_gate.nx

imports: nx_syscalls.nx

imported by: nx_viz_random_gate.nx

structs

none

consts

5const K_MAGIC_6364136223846793005: i64 = 6364136223846793005
6const K_MAGIC_1442695040888963407: i64 = 1442695040888963407
7const K_MAGIC_2147483647: i64 = 2147483647
8const K_MAGIC_6000: i64 = 6000

functions

11func vr_next(statep: *i64) -> i64
called by 2: vr_uniformmain
17func vr_uniform(statep: *i64, n: i64) -> i64
called by 2: vr_gaussianmain calls 1: vr_next
24func vr_gaussian(statep: *i64) -> i64
called by 1: main calls 1: vr_uniform
29func main() -> i64 { return 0 }