|
@@ 4082-4087 (lines=6) @@
|
| 4079 |
|
); |
| 4080 |
|
} |
| 4081 |
|
|
| 4082 |
|
if ($number === null) { |
| 4083 |
|
/** @noinspection NonSecureArrayRandUsageInspection */ |
| 4084 |
|
$arrayRandValue = [$this->array[\array_rand($this->array)]]; |
| 4085 |
|
|
| 4086 |
|
return static::create( |
| 4087 |
|
$arrayRandValue, |
| 4088 |
|
$this->iteratorClass, |
| 4089 |
|
false |
| 4090 |
|
); |
|
@@ 4186-4192 (lines=7) @@
|
| 4183 |
|
); |
| 4184 |
|
} |
| 4185 |
|
|
| 4186 |
|
if ($number === null) { |
| 4187 |
|
/** @noinspection NonSecureArrayRandUsageInspection */ |
| 4188 |
|
$arrayRandValue = [$this->array[\array_rand($this->array)]]; |
| 4189 |
|
$this->array = $arrayRandValue; |
| 4190 |
|
|
| 4191 |
|
return $this; |
| 4192 |
|
} |
| 4193 |
|
|
| 4194 |
|
/** @noinspection NonSecureShuffleUsageInspection */ |
| 4195 |
|
\shuffle($this->array); |