<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def random_val(index, tune_params):
 """return a random value for a parameter"""

    key = list(tune_params.keys())[index]
    return random.choice(tune_params[key])