Rolls a die of sides sides, num times, sums them, and adds add

def roll(cls, num, sides, add):
        """Rolls a die of sides sides, num times, sums them, and adds add"""
        rolls = []
        for i in range(num):
            rolls.append(random.randint(1, sides))
        rolls.append(add)
        return rolls