def METHOD_NAME(elem: str) -> float:
    """
    Used to produce a value or grade for the associated ticker. If the metric is
    grade, the function will return 1.0 and if value, the function returns a random
    number between (0, 1).
    :param <str> elem: ticker.
    """
    ticker_split = elem.split(",")
    if ticker_split[-1][:-1] == "grading":
        value = 1.0
    else:
        value = random()
    return value