Skip to main content

✅ Choice deterministic

CategoryAbility
StatusPassing
Testtests/test_rng.py::test_choice_deterministic

Two RNGs with the same seed make identical choices.

Preconditions

  • rng_a = DeterministicRNG(seed=77)

  • rng_b = DeterministicRNG(seed=77)

  • options = ["alpha", "beta", "gamma", "delta"]

Action

  • Pick 5 times from each.

Expected Postconditions

  • All 5 choices are identical between rng_a and rng_b.

Assertions

assert picks_a == picks_b