|
@@ 2941-2946 (lines=6) @@
|
| 2938 |
|
return static::create([], $this->iteratorClass, false); |
| 2939 |
|
} |
| 2940 |
|
|
| 2941 |
|
if ($number === null) { |
| 2942 |
|
/** @noinspection NonSecureArrayRandUsageInspection */ |
| 2943 |
|
$arrayRandValue = [$this->array[\array_rand($this->array)]]; |
| 2944 |
|
|
| 2945 |
|
return static::create($arrayRandValue, $this->iteratorClass, false); |
| 2946 |
|
} |
| 2947 |
|
|
| 2948 |
|
$arrayTmp = $this->array; |
| 2949 |
|
/** @noinspection NonSecureShuffleUsageInspection */ |
|
@@ 3014-3020 (lines=7) @@
|
| 3011 |
|
return static::create([], $this->iteratorClass, false); |
| 3012 |
|
} |
| 3013 |
|
|
| 3014 |
|
if ($number === null) { |
| 3015 |
|
/** @noinspection NonSecureArrayRandUsageInspection */ |
| 3016 |
|
$arrayRandValue = [$this->array[\array_rand($this->array)]]; |
| 3017 |
|
$this->array = $arrayRandValue; |
| 3018 |
|
|
| 3019 |
|
return $this; |
| 3020 |
|
} |
| 3021 |
|
|
| 3022 |
|
/** @noinspection NonSecureShuffleUsageInspection */ |
| 3023 |
|
\shuffle($this->array); |