src/Bag.php
public function randomValues($size)
    {
        $keys = $this->randomKeys($size);

        return $keys->isEmpty() ? $keys : $this->pick($keys);
    }
public function randomValues($size)
    {
        $keys = $this->randomKeys($size);

        return $keys->isEmpty() ? $keys : $this->pick($keys);
    }
Returns a bag with a random number of key/value pairs.

@param int $size Number of pairs

@throws \InvalidArgumentException when the bag is empty or the given $size is greater than the number of items

@return static