import random
import string


def random_string(chars=10):
    """
    Generate a random string
    :param chars: Number of characters in string
    :return: A string with [chars] random characters.
    """
    return ''.join(random.choice(string.ascii_uppercase + string.digits) for _ in range(chars))