import random


def random_value(d):
    """
    Get the random value from dictonary d.

    We use this function both to get the random
    language/category as well as a word.
    """
    return d[random.randint(0, len(d) - 1)]