test(compare): trace deterministic monthly seed progression

This commit is contained in:
2026-08-03 18:57:01 +00:00
parent 3b2fd1082f
commit f16a6b6880
23 changed files with 1274 additions and 213 deletions
@@ -112,10 +112,11 @@ class SightseeingMessage{
}
}
public function pickAction():array{
if (static::$comparisonRng !== null) {
[$type, $texts] = static::$comparisonRng->choiceUsingWeightPair(static::$messages ?? []);
$text = static::$comparisonRng->choice($texts);
public function pickAction(?\sammo\RandUtil $rng = null):array{
$actionRng = $rng ?? static::$comparisonRng;
if ($actionRng !== null) {
[$type, $texts] = $actionRng->choiceUsingWeightPair(static::$messages ?? []);
$text = $actionRng->choice($texts);
} else {
[$type, $texts] = Util::choiceRandomUsingWeightPair(static::$messages??[]);
$text = Util::choiceRandom($texts);