|
@@ 4299-4304 (lines=6) @@
|
| 4296 |
|
); |
| 4297 |
|
} |
| 4298 |
|
|
| 4299 |
|
if ($number === null) { |
| 4300 |
|
/** @noinspection NonSecureArrayRandUsageInspection */ |
| 4301 |
|
$arrayRandValue = [$this->array[\array_rand($this->array)]]; |
| 4302 |
|
|
| 4303 |
|
return static::create( |
| 4304 |
|
$arrayRandValue, |
| 4305 |
|
$this->iteratorClass, |
| 4306 |
|
false |
| 4307 |
|
); |
|
@@ 4403-4409 (lines=7) @@
|
| 4400 |
|
); |
| 4401 |
|
} |
| 4402 |
|
|
| 4403 |
|
if ($number === null) { |
| 4404 |
|
/** @noinspection NonSecureArrayRandUsageInspection */ |
| 4405 |
|
$arrayRandValue = [$this->array[\array_rand($this->array)]]; |
| 4406 |
|
$this->array = $arrayRandValue; |
| 4407 |
|
|
| 4408 |
|
return $this; |
| 4409 |
|
} |
| 4410 |
|
|
| 4411 |
|
/** @noinspection NonSecureShuffleUsageInspection */ |
| 4412 |
|
\shuffle($this->array); |