Code Duplication    Length = 3-3 lines in 2 locations

src/Arrayy.php 2 locations

@@ 2658-2660 (lines=3) @@
2655
     */
2656
    public function randomImmutable(int $number = null): self
2657
    {
2658
        if (\count($this->array, \COUNT_NORMAL) === 0) {
2659
            return static::create([], $this->iteratorClass, false);
2660
        }
2661
2662
        if ($number === null) {
2663
            /** @noinspection NonSecureArrayRandUsageInspection */
@@ 2734-2736 (lines=3) @@
2731
     */
2732
    public function randomMutable(int $number = null): self
2733
    {
2734
        if (\count($this->array, \COUNT_NORMAL) === 0) {
2735
            return static::create([], $this->iteratorClass, false);
2736
        }
2737
2738
        if ($number === null) {
2739
            /** @noinspection NonSecureArrayRandUsageInspection */