|
@@ 4927-4932 (lines=6) @@
|
| 4924 |
|
); |
| 4925 |
|
} |
| 4926 |
|
|
| 4927 |
|
if ($number === null) { |
| 4928 |
|
/** @noinspection NonSecureArrayRandUsageInspection */ |
| 4929 |
|
$arrayRandValue = [$this->array[\array_rand($this->array)]]; |
| 4930 |
|
|
| 4931 |
|
return static::create( |
| 4932 |
|
$arrayRandValue, |
| 4933 |
|
$this->iteratorClass, |
| 4934 |
|
false |
| 4935 |
|
); |
|
@@ 5044-5050 (lines=7) @@
|
| 5041 |
|
); |
| 5042 |
|
} |
| 5043 |
|
|
| 5044 |
|
if ($number === null) { |
| 5045 |
|
/** @noinspection NonSecureArrayRandUsageInspection */ |
| 5046 |
|
$arrayRandValue = [$this->array[\array_rand($this->array)]]; |
| 5047 |
|
$this->array = $arrayRandValue; |
| 5048 |
|
|
| 5049 |
|
return $this; |
| 5050 |
|
} |
| 5051 |
|
|
| 5052 |
|
/** @noinspection NonSecureShuffleUsageInspection */ |
| 5053 |
|
\shuffle($this->array); |