Summary
The standard sampling strategy should support explicit seeding for reproducible sampling.
This should be consistent with the seeding API used by UNU.RAN sampling strategies.
Problem
The standard sampling path does not currently provide a clear user-facing way to control randomness.
This makes deterministic examples, stable tests, backend comparisons, and debugging stochastic behavior harder than necessary.
Expected behavior
Two standard sampling strategies initialized with the same seed should produce the same sample sequence for the same distribution and sample size.
The strategy should not rely on hidden global random state when a seed is provided. Each strategy instance should own an independent RNG.
Acceptance criteria
- The standard sampling strategy accepts a public
seed argument.
- Same seed, same distribution, and same sample size produce reproducible samples.
- Different seeds produce different samples.
- Standard and UNU.RAN sampling strategies expose a consistent seeding API.
- Tests are added for deterministic standard sampling.
- Examples or documentation mention seeded standard sampling.
Summary
The standard sampling strategy should support explicit seeding for reproducible sampling.
This should be consistent with the seeding API used by UNU.RAN sampling strategies.
Problem
The standard sampling path does not currently provide a clear user-facing way to control randomness.
This makes deterministic examples, stable tests, backend comparisons, and debugging stochastic behavior harder than necessary.
Expected behavior
Two standard sampling strategies initialized with the same seed should produce the same sample sequence for the same distribution and sample size.
The strategy should not rely on hidden global random state when a seed is provided. Each strategy instance should own an independent RNG.
Acceptance criteria
seedargument.