import random


def random_colors(n_colors):
    """
    Randomly selects colors based on hex color coding.

    Input:
        - n_colors = number of colors to return

    Return:
        - list of hex colors
    """
    return ["#"+''.join([random.choice('0123456789ABCDEF') for j in range(6)]) for i in range(n_colors)]