@@ 4822-4827 (lines=6) @@ | ||
4819 | ); |
|
4820 | } |
|
4821 | ||
4822 | if ($number === null) { |
|
4823 | /** @noinspection NonSecureArrayRandUsageInspection */ |
|
4824 | $arrayRandValue = [$this->array[\array_rand($this->array)]]; |
|
4825 | ||
4826 | return static::create( |
|
4827 | $arrayRandValue, |
|
4828 | $this->iteratorClass, |
|
4829 | false |
|
4830 | ); |
|
@@ 4939-4945 (lines=7) @@ | ||
4936 | ); |
|
4937 | } |
|
4938 | ||
4939 | if ($number === null) { |
|
4940 | /** @noinspection NonSecureArrayRandUsageInspection */ |
|
4941 | $arrayRandValue = [$this->array[\array_rand($this->array)]]; |
|
4942 | $this->array = $arrayRandValue; |
|
4943 | ||
4944 | return $this; |
|
4945 | } |
|
4946 | ||
4947 | /** @noinspection NonSecureShuffleUsageInspection */ |
|
4948 | \shuffle($this->array); |