|
@@ 2997-3002 (lines=6) @@
|
| 2994 |
|
); |
| 2995 |
|
} |
| 2996 |
|
|
| 2997 |
|
if ($number === null) { |
| 2998 |
|
/** @noinspection NonSecureArrayRandUsageInspection */ |
| 2999 |
|
$arrayRandValue = [$this->array[\array_rand($this->array)]]; |
| 3000 |
|
|
| 3001 |
|
return static::create( |
| 3002 |
|
$arrayRandValue, |
| 3003 |
|
$this->iteratorClass, |
| 3004 |
|
false |
| 3005 |
|
); |
|
@@ 3093-3099 (lines=7) @@
|
| 3090 |
|
); |
| 3091 |
|
} |
| 3092 |
|
|
| 3093 |
|
if ($number === null) { |
| 3094 |
|
/** @noinspection NonSecureArrayRandUsageInspection */ |
| 3095 |
|
$arrayRandValue = [$this->array[\array_rand($this->array)]]; |
| 3096 |
|
$this->array = $arrayRandValue; |
| 3097 |
|
|
| 3098 |
|
return $this; |
| 3099 |
|
} |
| 3100 |
|
|
| 3101 |
|
/** @noinspection NonSecureShuffleUsageInspection */ |
| 3102 |
|
\shuffle($this->array); |