|
@@ 3011-3016 (lines=6) @@
|
| 3008 |
|
); |
| 3009 |
|
} |
| 3010 |
|
|
| 3011 |
|
if ($number === null) { |
| 3012 |
|
/** @noinspection NonSecureArrayRandUsageInspection */ |
| 3013 |
|
$arrayRandValue = [$this->array[\array_rand($this->array)]]; |
| 3014 |
|
|
| 3015 |
|
return static::create( |
| 3016 |
|
$arrayRandValue, |
| 3017 |
|
$this->iteratorClass, |
| 3018 |
|
false |
| 3019 |
|
); |
|
@@ 3107-3113 (lines=7) @@
|
| 3104 |
|
); |
| 3105 |
|
} |
| 3106 |
|
|
| 3107 |
|
if ($number === null) { |
| 3108 |
|
/** @noinspection NonSecureArrayRandUsageInspection */ |
| 3109 |
|
$arrayRandValue = [$this->array[\array_rand($this->array)]]; |
| 3110 |
|
$this->array = $arrayRandValue; |
| 3111 |
|
|
| 3112 |
|
return $this; |
| 3113 |
|
} |
| 3114 |
|
|
| 3115 |
|
/** @noinspection NonSecureShuffleUsageInspection */ |
| 3116 |
|
\shuffle($this->array); |