@@ 4958-4963 (lines=6) @@ | ||
4955 | ); |
|
4956 | } |
|
4957 | ||
4958 | if ($number === null) { |
|
4959 | /** @noinspection NonSecureArrayRandUsageInspection */ |
|
4960 | $arrayRandValue = [$this->array[\array_rand($this->array)]]; |
|
4961 | ||
4962 | return static::create( |
|
4963 | $arrayRandValue, |
|
4964 | $this->iteratorClass, |
|
4965 | false |
|
4966 | ); |
|
@@ 5075-5081 (lines=7) @@ | ||
5072 | ); |
|
5073 | } |
|
5074 | ||
5075 | if ($number === null) { |
|
5076 | /** @noinspection NonSecureArrayRandUsageInspection */ |
|
5077 | $arrayRandValue = [$this->array[\array_rand($this->array)]]; |
|
5078 | $this->array = $arrayRandValue; |
|
5079 | ||
5080 | return $this; |
|
5081 | } |
|
5082 | ||
5083 | /** @noinspection NonSecureShuffleUsageInspection */ |
|
5084 | \shuffle($this->array); |