import random


def defender(q):
    """Rolls the dice for the defender"""

    defender_rolls = []
    for i in range(0,q):
        roll = random.randint(1,6)
        defender_rolls.append(roll)

    return defender_rolls