import json
import random
import time


def pick_random_quote(path='responses/class_quotes.json'):
    """
    Get a random quote from a jason file.
    
    :param path: a string that indicates the location where the quotes are stored.
    :return: a random quote
    """
    with open(path) as f:
        responses = json.loads(f.read())
    random.seed(round(time.time()) % 1e5) ## put random seed to make sure we don't get the same groups everytime
    response = random.sample(responses['responses'], 1)[0]
    return '"' + response["quote"] + '"' + " -- " + response["quotee"]