|
@@ 3315-3320 (lines=6) @@
|
| 3312 |
|
); |
| 3313 |
|
} |
| 3314 |
|
|
| 3315 |
|
if ($number === null) { |
| 3316 |
|
/** @noinspection NonSecureArrayRandUsageInspection */ |
| 3317 |
|
$arrayRandValue = [$this->array[\array_rand($this->array)]]; |
| 3318 |
|
|
| 3319 |
|
return static::create( |
| 3320 |
|
$arrayRandValue, |
| 3321 |
|
$this->iteratorClass, |
| 3322 |
|
false |
| 3323 |
|
); |
|
@@ 3411-3417 (lines=7) @@
|
| 3408 |
|
); |
| 3409 |
|
} |
| 3410 |
|
|
| 3411 |
|
if ($number === null) { |
| 3412 |
|
/** @noinspection NonSecureArrayRandUsageInspection */ |
| 3413 |
|
$arrayRandValue = [$this->array[\array_rand($this->array)]]; |
| 3414 |
|
$this->array = $arrayRandValue; |
| 3415 |
|
|
| 3416 |
|
return $this; |
| 3417 |
|
} |
| 3418 |
|
|
| 3419 |
|
/** @noinspection NonSecureShuffleUsageInspection */ |
| 3420 |
|
\shuffle($this->array); |