|
@@ 4220-4225 (lines=6) @@
|
| 4217 |
|
); |
| 4218 |
|
} |
| 4219 |
|
|
| 4220 |
|
if ($number === null) { |
| 4221 |
|
/** @noinspection NonSecureArrayRandUsageInspection */ |
| 4222 |
|
$arrayRandValue = [$this->array[\array_rand($this->array)]]; |
| 4223 |
|
|
| 4224 |
|
return static::create( |
| 4225 |
|
$arrayRandValue, |
| 4226 |
|
$this->iteratorClass, |
| 4227 |
|
false |
| 4228 |
|
); |
|
@@ 4324-4330 (lines=7) @@
|
| 4321 |
|
); |
| 4322 |
|
} |
| 4323 |
|
|
| 4324 |
|
if ($number === null) { |
| 4325 |
|
/** @noinspection NonSecureArrayRandUsageInspection */ |
| 4326 |
|
$arrayRandValue = [$this->array[\array_rand($this->array)]]; |
| 4327 |
|
$this->array = $arrayRandValue; |
| 4328 |
|
|
| 4329 |
|
return $this; |
| 4330 |
|
} |
| 4331 |
|
|
| 4332 |
|
/** @noinspection NonSecureShuffleUsageInspection */ |
| 4333 |
|
\shuffle($this->array); |