|
@@ 3327-3332 (lines=6) @@
|
| 3324 |
|
); |
| 3325 |
|
} |
| 3326 |
|
|
| 3327 |
|
if ($number === null) { |
| 3328 |
|
/** @noinspection NonSecureArrayRandUsageInspection */ |
| 3329 |
|
$arrayRandValue = [$this->array[\array_rand($this->array)]]; |
| 3330 |
|
|
| 3331 |
|
return static::create( |
| 3332 |
|
$arrayRandValue, |
| 3333 |
|
$this->iteratorClass, |
| 3334 |
|
false |
| 3335 |
|
); |
|
@@ 3423-3429 (lines=7) @@
|
| 3420 |
|
); |
| 3421 |
|
} |
| 3422 |
|
|
| 3423 |
|
if ($number === null) { |
| 3424 |
|
/** @noinspection NonSecureArrayRandUsageInspection */ |
| 3425 |
|
$arrayRandValue = [$this->array[\array_rand($this->array)]]; |
| 3426 |
|
$this->array = $arrayRandValue; |
| 3427 |
|
|
| 3428 |
|
return $this; |
| 3429 |
|
} |
| 3430 |
|
|
| 3431 |
|
/** @noinspection NonSecureShuffleUsageInspection */ |
| 3432 |
|
\shuffle($this->array); |