|
@@ 4931-4936 (lines=6) @@
|
| 4928 |
|
); |
| 4929 |
|
} |
| 4930 |
|
|
| 4931 |
|
if ($number === null) { |
| 4932 |
|
/** @noinspection NonSecureArrayRandUsageInspection */ |
| 4933 |
|
$arrayRandValue = [$this->array[\array_rand($this->array)]]; |
| 4934 |
|
|
| 4935 |
|
return static::create( |
| 4936 |
|
$arrayRandValue, |
| 4937 |
|
$this->iteratorClass, |
| 4938 |
|
false |
| 4939 |
|
); |
|
@@ 5048-5054 (lines=7) @@
|
| 5045 |
|
); |
| 5046 |
|
} |
| 5047 |
|
|
| 5048 |
|
if ($number === null) { |
| 5049 |
|
/** @noinspection NonSecureArrayRandUsageInspection */ |
| 5050 |
|
$arrayRandValue = [$this->array[\array_rand($this->array)]]; |
| 5051 |
|
$this->array = $arrayRandValue; |
| 5052 |
|
|
| 5053 |
|
return $this; |
| 5054 |
|
} |
| 5055 |
|
|
| 5056 |
|
/** @noinspection NonSecureShuffleUsageInspection */ |
| 5057 |
|
\shuffle($this->array); |