import string
import random


def random_id(length=4):
    """
    Generate a case sensitive random string.
    """
    symbols = string.ascii_letters + string.digits
    return ''.join(random.choice(symbols) for _ in range(length))