import random


def choose_duration(simple=False):
    """Returns a random duration in durk units
    
    Args:
        simple (bool, optional): Defaults at False.  If True, only considers notes of duration 8 or 16 durks.  Otherwise, considers durations in list: [1, 2, 3, 4, 6, 8, 12, 16]
    
    Returns:
        int: duration in unit durks
    """
    possible_durations = []
    if simple:
        possible_durations = [8, 16]
    else:
        possible_durations = [1, 2, 3, 4, 6, 8, 12, 16]

    return possible_durations[random.randint(0, len(possible_durations) - 1)]