import random


def generate_string(length: int) -> str:
    """Generates a random string of a given lentgh."""
    symbols: str = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890"
    final_string: str = ""
    for i in range(length):
        final_string += symbols[random.randint(0, len(symbols) - 1)]
    return final_string