|
@@ 2944-2949 (lines=6) @@
|
| 2941 |
|
); |
| 2942 |
|
} |
| 2943 |
|
|
| 2944 |
|
if ($number === null) { |
| 2945 |
|
/** @noinspection NonSecureArrayRandUsageInspection */ |
| 2946 |
|
$arrayRandValue = [$this->array[\array_rand($this->array)]]; |
| 2947 |
|
|
| 2948 |
|
return static::create( |
| 2949 |
|
$arrayRandValue, |
| 2950 |
|
$this->iteratorClass, |
| 2951 |
|
false |
| 2952 |
|
); |
|
@@ 3040-3046 (lines=7) @@
|
| 3037 |
|
); |
| 3038 |
|
} |
| 3039 |
|
|
| 3040 |
|
if ($number === null) { |
| 3041 |
|
/** @noinspection NonSecureArrayRandUsageInspection */ |
| 3042 |
|
$arrayRandValue = [$this->array[\array_rand($this->array)]]; |
| 3043 |
|
$this->array = $arrayRandValue; |
| 3044 |
|
|
| 3045 |
|
return $this; |
| 3046 |
|
} |
| 3047 |
|
|
| 3048 |
|
/** @noinspection NonSecureShuffleUsageInspection */ |
| 3049 |
|
\shuffle($this->array); |