src/Collection.php
public function shuffle()
    {
        $items = $this->items;
        shuffle($items);

        $col = new static ($this->type);
        $col->setItemsFromTrustedSource($items);

        return $col;
    }
public function shuffle()
    {
        $items = $this->items;
        shuffle($items);

        $col = new static ($this->type);
        $col->setItemsFromTrustedSource($items);

        return $col;
    }
{@inheritdoc}