Example #1
0
 public static function generateRandomWithPotential($first, $second)
 {
     $max = $first + $second;
     $random = rand(0, $max);
     if ($first > $second) {
         return Random::getWinner($second, $first, $random);
     } else {
         return Random::getWinner($first, $second, $random);
     }
 }