import random


def random_char(amount: int):
    """Generate string from x amount of letters and digits."""
    letters_and_digits = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
    return "".join(random.choice(letters_and_digits) for x in range(amount))