Reproduce Audulus random node behavior, then add Lyte extended functionality. Something like:
random() -> f32
seed_random(seed: u32)
random(seed: u32) -> f32
Suggested semantics:
random() // like Audulus random node, advances this script instance’s PRNG
seed_random(seed) // resets that stream
random(seed) // stateless deterministic value
seed_random(seed: u32)
Allow Lyte code to reseed from patch logic: knobs, inputs, gates, sequencers, presets, or algorithmic state. Identical seeds produce identical sequences.
random(seed: u32) -> f32
As an optional third function, a stateless deterministic random/hash value: same seed in, same value out, without advancing the random() stream. Great for things like voice IDs, table variation, repeatable per-step offsets, or deterministic “randomized” constants.
Reproduce Audulus random node behavior, then add Lyte extended functionality. Something like:
Suggested semantics:
seed_random(seed: u32)Allow Lyte code to reseed from patch logic: knobs, inputs, gates, sequencers, presets, or algorithmic state. Identical seeds produce identical sequences.
random(seed: u32) -> f32As an optional third function, a stateless deterministic random/hash value: same seed in, same value out, without advancing the
random()stream. Great for things like voice IDs, table variation, repeatable per-step offsets, or deterministic “randomized” constants.