|
@@ 4467-4472 (lines=6) @@
|
| 4464 |
|
); |
| 4465 |
|
} |
| 4466 |
|
|
| 4467 |
|
if ($number === null) { |
| 4468 |
|
/** @noinspection NonSecureArrayRandUsageInspection */ |
| 4469 |
|
$arrayRandValue = [$this->array[\array_rand($this->array)]]; |
| 4470 |
|
|
| 4471 |
|
return static::create( |
| 4472 |
|
$arrayRandValue, |
| 4473 |
|
$this->iteratorClass, |
| 4474 |
|
false |
| 4475 |
|
); |
|
@@ 4571-4577 (lines=7) @@
|
| 4568 |
|
); |
| 4569 |
|
} |
| 4570 |
|
|
| 4571 |
|
if ($number === null) { |
| 4572 |
|
/** @noinspection NonSecureArrayRandUsageInspection */ |
| 4573 |
|
$arrayRandValue = [$this->array[\array_rand($this->array)]]; |
| 4574 |
|
$this->array = $arrayRandValue; |
| 4575 |
|
|
| 4576 |
|
return $this; |
| 4577 |
|
} |
| 4578 |
|
|
| 4579 |
|
/** @noinspection NonSecureShuffleUsageInspection */ |
| 4580 |
|
\shuffle($this->array); |