import random


def random_indexes(a, b, feats_in_plot):
    """Support function for tSNE_vis
    Args:
        a: start index
        b: end index
        feats_in_plot: # of featuers to be plotted per class
    Returns:
        Random list of feats_in_plot indexes between a and b
    """
    randomList = []
    # Set a length of the list to feats_in_plot
    for i in range(feats_in_plot):
        # any random numbers from a to b
        randomList.append(random.randint(a, b - 1))

    return randomList