|
@@ 4472-4477 (lines=6) @@
|
| 4469 |
|
); |
| 4470 |
|
} |
| 4471 |
|
|
| 4472 |
|
if ($number === null) { |
| 4473 |
|
/** @noinspection NonSecureArrayRandUsageInspection */ |
| 4474 |
|
$arrayRandValue = [$this->array[\array_rand($this->array)]]; |
| 4475 |
|
|
| 4476 |
|
return static::create( |
| 4477 |
|
$arrayRandValue, |
| 4478 |
|
$this->iteratorClass, |
| 4479 |
|
false |
| 4480 |
|
); |
|
@@ 4576-4582 (lines=7) @@
|
| 4573 |
|
); |
| 4574 |
|
} |
| 4575 |
|
|
| 4576 |
|
if ($number === null) { |
| 4577 |
|
/** @noinspection NonSecureArrayRandUsageInspection */ |
| 4578 |
|
$arrayRandValue = [$this->array[\array_rand($this->array)]]; |
| 4579 |
|
$this->array = $arrayRandValue; |
| 4580 |
|
|
| 4581 |
|
return $this; |
| 4582 |
|
} |
| 4583 |
|
|
| 4584 |
|
/** @noinspection NonSecureShuffleUsageInspection */ |
| 4585 |
|
\shuffle($this->array); |