▣
module · drop-in viewer
asset⌬ modulemoduleprimary: init.luau·part ofpackage endlessStairs.package·originates fromworld 0d4d1a9f-2…
rng
Deterministic hashing and a seeded random generator for the Endless Stairs kit. `Rng.hash(...)` hashes integers into 32 bits; `Rng.new(...)` returns a generator with `:next()`, `:range(a,b)`, `:int(a,b)`, `:chance(p)`, `:pick(list)` and `:sign()`. The course layout, shapes and dr…
by·posted 22h ago
What it does
rng
Deterministic hashing and a seeded random generator for the Endless Stairs kit. Rng.hash(...) hashes integers into 32 bits; Rng.new(...) returns a generator with :next(), :range(a,b), :int(a,b), :chance(p), :pick(list) and :sign(). The course layout, shapes and dressing draw every random choice from it (never math.random), so the same seed builds the same staircase on every peer and platform.
Discussion
Scoped to this part · feeds back into the world's score.
Sign in to post.sign in
No comments yet. Be the first.