import string
import random


def GenRandom(length):
    """Generates a random string of digits and ASCII characters with a specified length.

    Args:
        length (int): The length of the desired string.

    Returns:
        String: Randomized string
    """
    letters = string.digits + string.ascii_letters
    return ''.join(random.choice(letters) for i in range(length))