|
@@ 4134-4139 (lines=6) @@
|
| 4131 |
|
); |
| 4132 |
|
} |
| 4133 |
|
|
| 4134 |
|
if ($number === null) { |
| 4135 |
|
/** @noinspection NonSecureArrayRandUsageInspection */ |
| 4136 |
|
$arrayRandValue = [$this->array[\array_rand($this->array)]]; |
| 4137 |
|
|
| 4138 |
|
return static::create( |
| 4139 |
|
$arrayRandValue, |
| 4140 |
|
$this->iteratorClass, |
| 4141 |
|
false |
| 4142 |
|
); |
|
@@ 4238-4244 (lines=7) @@
|
| 4235 |
|
); |
| 4236 |
|
} |
| 4237 |
|
|
| 4238 |
|
if ($number === null) { |
| 4239 |
|
/** @noinspection NonSecureArrayRandUsageInspection */ |
| 4240 |
|
$arrayRandValue = [$this->array[\array_rand($this->array)]]; |
| 4241 |
|
$this->array = $arrayRandValue; |
| 4242 |
|
|
| 4243 |
|
return $this; |
| 4244 |
|
} |
| 4245 |
|
|
| 4246 |
|
/** @noinspection NonSecureShuffleUsageInspection */ |
| 4247 |
|
\shuffle($this->array); |