import random


def getAction(action_list,action_values,minimax_val):
    """
    Returns a random action of the actions with minmax_val
    """
    req_actions = list()
    min_val_indexs = [i  for i in range(len(action_values)) if action_values[i]==minimax_val]
    for i in range(len(min_val_indexs)):
        req_actions.append(action_list[min_val_indexs[i]])
    random.shuffle(req_actions)
    return req_actions[0]