from random import randint

class DiceRollerProcessor(object):

    def __init__(self, request, response):
        self._request = request
        self._response = response

    def process(self):
        die_type = int(self._request["die_type"])
        amount = int(self._request["amount"])
        self._response["results"] = [randint(1,die_type) for _ in range(1,amount+1)]