diff --git a/hwe/sammo/Command/General/che_랜덤임관.php b/hwe/sammo/Command/General/che_랜덤임관.php index 1cfd97bd..86019b5c 100644 --- a/hwe/sammo/Command/General/che_랜덤임관.php +++ b/hwe/sammo/Command/General/che_랜덤임관.php @@ -137,12 +137,10 @@ class che_랜덤임관 extends Command\GeneralCommand{ $notIn ); - $allGen = Util::arraySum($nations, 'gennum'); - $randVals = []; foreach($nations as $testNation){ $nationID = $nations['nation']; - $randVals[] = [$testNation, sqrt($allGen/$testNation['gennum'])]; + $randVals[] = [$testNation, 1/$testNation['gennum']]; } $destNation = Util::choiceRandomUsingWeightPair($randVals);