The randSystem provides various random number generation utilities including weighted random, range random, and more.
randSystem
Access via maplebirch.tool.rand.
maplebirch.tool.rand
const rand = maplebirch.tool.rand;
create()
Seed
get(max)
rng
backtrack(n)
history
pointer
const rng = maplebirch.tool.rand.create(); rng.Seed = 42; const num1 = rng.get(10); // 0–10 const num2 = rng.rng; // 1–100