import random


def generate_random_char(_str):
    """
    Return a random character from string argument.
    """
    
    if _str == '':
        return ''
        
    i = random.randint(0, len(_str) - 1)
    return _str[i]