|
@@ 3002-3007 (lines=6) @@
|
| 2999 |
|
); |
| 3000 |
|
} |
| 3001 |
|
|
| 3002 |
|
if ($number === null) { |
| 3003 |
|
/** @noinspection NonSecureArrayRandUsageInspection */ |
| 3004 |
|
$arrayRandValue = [$this->array[\array_rand($this->array)]]; |
| 3005 |
|
|
| 3006 |
|
return static::create( |
| 3007 |
|
$arrayRandValue, |
| 3008 |
|
$this->iteratorClass, |
| 3009 |
|
false |
| 3010 |
|
); |
|
@@ 3098-3104 (lines=7) @@
|
| 3095 |
|
); |
| 3096 |
|
} |
| 3097 |
|
|
| 3098 |
|
if ($number === null) { |
| 3099 |
|
/** @noinspection NonSecureArrayRandUsageInspection */ |
| 3100 |
|
$arrayRandValue = [$this->array[\array_rand($this->array)]]; |
| 3101 |
|
$this->array = $arrayRandValue; |
| 3102 |
|
|
| 3103 |
|
return $this; |
| 3104 |
|
} |
| 3105 |
|
|
| 3106 |
|
/** @noinspection NonSecureShuffleUsageInspection */ |
| 3107 |
|
\shuffle($this->array); |