import random


def ShuffleList(feature, label):
    """
    Shuffle list
    :param feature: the feature to train model, which is a list
    :param label: the label of the feature, which is a list
    :return: the shuffled feature and label
    """
    randIndex = [a for a in range(len(feature))]
    random.shuffle(randIndex)
    featureShuffle = [feature[ind] for ind in randIndex]
    labelShuffle = [label[ind] for ind in randIndex]
    return featureShuffle, labelShuffle