import random


def generate_bdays(num_bdays):
    """Generates n birthdays and returns them as a list"""
    bdays = []
    for bday in range(num_bdays):
        bdays.append(random.randint(1, 365))
    return bdays