|
@@ 3486-3491 (lines=6) @@
|
| 3483 |
|
); |
| 3484 |
|
} |
| 3485 |
|
|
| 3486 |
|
if ($number === null) { |
| 3487 |
|
/** @noinspection NonSecureArrayRandUsageInspection */ |
| 3488 |
|
$arrayRandValue = [$this->array[\array_rand($this->array)]]; |
| 3489 |
|
|
| 3490 |
|
return static::create( |
| 3491 |
|
$arrayRandValue, |
| 3492 |
|
$this->iteratorClass, |
| 3493 |
|
false |
| 3494 |
|
); |
|
@@ 3582-3588 (lines=7) @@
|
| 3579 |
|
); |
| 3580 |
|
} |
| 3581 |
|
|
| 3582 |
|
if ($number === null) { |
| 3583 |
|
/** @noinspection NonSecureArrayRandUsageInspection */ |
| 3584 |
|
$arrayRandValue = [$this->array[\array_rand($this->array)]]; |
| 3585 |
|
$this->array = $arrayRandValue; |
| 3586 |
|
|
| 3587 |
|
return $this; |
| 3588 |
|
} |
| 3589 |
|
|
| 3590 |
|
/** @noinspection NonSecureShuffleUsageInspection */ |
| 3591 |
|
\shuffle($this->array); |