code wiki / _hdl_build / nx_viz_random.nx
nx_viz_random.nx
buildroot/runtime/_hdl_build/nx_viz_random.nx
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
imports: nx_syscalls.nx
imported by: nx_viz_random_gate.nx
structs
| none |
consts
| 5 | const K_MAGIC_6364136223846793005: i64 = 6364136223846793005 |
| 6 | const K_MAGIC_1442695040888963407: i64 = 1442695040888963407 |
| 7 | const K_MAGIC_2147483647: i64 = 2147483647 |
| 8 | const K_MAGIC_6000: i64 = 6000 |
functions
| 11 | func vr_next(statep: *i64) -> i64 |
| 17 | func vr_uniform(statep: *i64, n: i64) -> i64 |
| 24 | func vr_gaussian(statep: *i64) -> i64 |
| 29 | func main() -> i64 { return 0 } |