|
@@ 5093-5098 (lines=6) @@
|
| 5090 |
|
); |
| 5091 |
|
} |
| 5092 |
|
|
| 5093 |
|
if ($number === null) { |
| 5094 |
|
/** @noinspection NonSecureArrayRandUsageInspection */ |
| 5095 |
|
$arrayRandValue = [$this->array[\array_rand($this->array)]]; |
| 5096 |
|
|
| 5097 |
|
return static::create( |
| 5098 |
|
$arrayRandValue, |
| 5099 |
|
$this->iteratorClass, |
| 5100 |
|
false |
| 5101 |
|
); |
|
@@ 5210-5216 (lines=7) @@
|
| 5207 |
|
); |
| 5208 |
|
} |
| 5209 |
|
|
| 5210 |
|
if ($number === null) { |
| 5211 |
|
/** @noinspection NonSecureArrayRandUsageInspection */ |
| 5212 |
|
$arrayRandValue = [$this->array[\array_rand($this->array)]]; |
| 5213 |
|
$this->array = $arrayRandValue; |
| 5214 |
|
|
| 5215 |
|
return $this; |
| 5216 |
|
} |
| 5217 |
|
|
| 5218 |
|
/** @noinspection NonSecureShuffleUsageInspection */ |
| 5219 |
|
\shuffle($this->array); |