Deterministic sampling helpers for optimizers.
Every sampling operation accepts and returns explicit :rand state so
optimizer runs remain reproducible without process-global random state.
Summary
Types
@type state() :: :rand.state()
Functions
Serializes an explicit optimizer RNG state into JSON-safe data.
@spec integer(pos_integer(), state()) :: {non_neg_integer(), state()}
Restores an optimizer RNG state serialized by dump/1.
@spec poisson(number(), state()) :: {non_neg_integer(), state()}