| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 12 | 
| Code Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 16 | public static function randomInt(int $max, int $min): int  | 
            ||
| 17 |     { | 
            ||
| 18 | |||
| 19 |         try { | 
            ||
| 20 | $num = random_int($min, $max);  | 
            ||
| 21 |         } catch (\Exception $exception) { | 
            ||
| 22 | $randFactory = new Factory();  | 
            ||
| 23 | $generator = $randFactory->getMediumStrengthGenerator();  | 
            ||
| 24 | $num = $generator->generateInt($min, $max);  | 
            ||
| 25 | }  | 
            ||
| 26 | |||
| 27 | return $num;  | 
            ||
| 28 | |||
| 31 | }  |