import string
import random


def random_string(length):
    """ Generate a random string of uppercase, lowercase, and digits """
    library = string.ascii_uppercase + string.ascii_lowercase + string.digits
    return ''.join(random.choice(library) for _ in range(length))