|
@@ 2660-2665 (lines=6) @@
|
| 2657 |
|
return static::create([], $this->iteratorClass, false); |
| 2658 |
|
} |
| 2659 |
|
|
| 2660 |
|
if ($number === null) { |
| 2661 |
|
/** @noinspection NonSecureArrayRandUsageInspection */ |
| 2662 |
|
$arrayRandValue = [$this->array[\array_rand($this->array)]]; |
| 2663 |
|
|
| 2664 |
|
return static::create($arrayRandValue, $this->iteratorClass, false); |
| 2665 |
|
} |
| 2666 |
|
|
| 2667 |
|
$arrayTmp = $this->array; |
| 2668 |
|
/** @noinspection NonSecureShuffleUsageInspection */ |
|
@@ 2736-2742 (lines=7) @@
|
| 2733 |
|
return static::create([], $this->iteratorClass, false); |
| 2734 |
|
} |
| 2735 |
|
|
| 2736 |
|
if ($number === null) { |
| 2737 |
|
/** @noinspection NonSecureArrayRandUsageInspection */ |
| 2738 |
|
$arrayRandValue = [$this->array[\array_rand($this->array)]]; |
| 2739 |
|
$this->array = $arrayRandValue; |
| 2740 |
|
|
| 2741 |
|
return $this; |
| 2742 |
|
} |
| 2743 |
|
|
| 2744 |
|
/** @noinspection NonSecureShuffleUsageInspection */ |
| 2745 |
|
\shuffle($this->array); |