private function getSequenceValues(array $values, $length)
    {
        if ($length < 1) {
            return [];
        }

        if (count($values) < 1) {
            throw new \InvalidArgumentException('Cannot generate sequence from empty value set');
        }

        $size = count($values);
        $result = [];

        for ($i = 0; $i < $length; $i++) {
            $result[] = $values[$this->generator->getNumber(0, $size - 1)];
        }

        return $result;
    }
private function getSequenceValues(array $values, $length)
    {
        if ($length < 1) {
            return [];
        }

        if (count($values) < 1) {
            throw new \InvalidArgumentException('Cannot generate sequence from empty value set');
        }

        $size = count($values);
        $result = [];

        for ($i = 0; $i < $length; $i++) {
            $result[] = $values[$this->generator->getNumber(0, $size - 1)];
        }

        return $result;
    }
private function getSequenceValues ( array $ values , $ length ) { if ( $ length < 1 ) { return [ ] ; } if ( count ( $ values ) < 1 ) { throw new \ InvalidArgumentException ( 'Cannot generate sequence from empty value set' ) ; } $ size = count ( $ values ) ; $ result = [ ] ; for ( $ i = 0 ; $ i < $ length ; $ i ++ ) { $ result [ ] = $ values [ $ this -> generator -> getNumber ( 0 , $ size - 1 ) ] ; } return $ result ; }
Returns the selected list of values for the sequence.
@param array $values List of possible values
@param int $length Number of values to return
@return array Selected list of values for the sequence
@throws \InvalidArgumentException If the value set is empty
Returns the selected list of values for the sequence .