import random


def mutate_guess_i(old_guess, i):
    """randomly mutate single element in string"""
    ls_old_guess = list(old_guess)
    rand_value = str(random.randint(0, 9))
    ls_old_guess[i] = rand_value
    return ''.join(ls_old_guess)