|
@@ 3088-3093 (lines=6) @@
|
| 3085 |
|
); |
| 3086 |
|
} |
| 3087 |
|
|
| 3088 |
|
if ($number === null) { |
| 3089 |
|
/** @noinspection NonSecureArrayRandUsageInspection */ |
| 3090 |
|
$arrayRandValue = [$this->array[\array_rand($this->array)]]; |
| 3091 |
|
|
| 3092 |
|
return static::create( |
| 3093 |
|
$arrayRandValue, |
| 3094 |
|
$this->iteratorClass, |
| 3095 |
|
false |
| 3096 |
|
); |
|
@@ 3184-3190 (lines=7) @@
|
| 3181 |
|
); |
| 3182 |
|
} |
| 3183 |
|
|
| 3184 |
|
if ($number === null) { |
| 3185 |
|
/** @noinspection NonSecureArrayRandUsageInspection */ |
| 3186 |
|
$arrayRandValue = [$this->array[\array_rand($this->array)]]; |
| 3187 |
|
$this->array = $arrayRandValue; |
| 3188 |
|
|
| 3189 |
|
return $this; |
| 3190 |
|
} |
| 3191 |
|
|
| 3192 |
|
/** @noinspection NonSecureShuffleUsageInspection */ |
| 3193 |
|
\shuffle($this->array); |