|
@@ 3253-3258 (lines=6) @@
|
| 3250 |
|
); |
| 3251 |
|
} |
| 3252 |
|
|
| 3253 |
|
if ($number === null) { |
| 3254 |
|
/** @noinspection NonSecureArrayRandUsageInspection */ |
| 3255 |
|
$arrayRandValue = [$this->array[\array_rand($this->array)]]; |
| 3256 |
|
|
| 3257 |
|
return static::create( |
| 3258 |
|
$arrayRandValue, |
| 3259 |
|
$this->iteratorClass, |
| 3260 |
|
false |
| 3261 |
|
); |
|
@@ 3349-3355 (lines=7) @@
|
| 3346 |
|
); |
| 3347 |
|
} |
| 3348 |
|
|
| 3349 |
|
if ($number === null) { |
| 3350 |
|
/** @noinspection NonSecureArrayRandUsageInspection */ |
| 3351 |
|
$arrayRandValue = [$this->array[\array_rand($this->array)]]; |
| 3352 |
|
$this->array = $arrayRandValue; |
| 3353 |
|
|
| 3354 |
|
return $this; |
| 3355 |
|
} |
| 3356 |
|
|
| 3357 |
|
/** @noinspection NonSecureShuffleUsageInspection */ |
| 3358 |
|
\shuffle($this->array); |