public function roll($config = '1x6')
    {
        // parse config and set variables
        $config = $this->parseConfig($config);
        $diceType = $config[2];
        $count = $config[1];
        // initialize rolls and value variables
        $rolls = [];
        $value = 0;
        // roll dice
        for ($i = 1; $i <= $count; $i++) {
            $roll = $this->random->getRand(1, $diceType);
            $rolls[$i] = $roll;
            $value += $roll;
        }
        // set data and retun them
        $this->data['rolls'] = $rolls;
        $this->data['value'] = $value;
        return $this->data;
    }