import random


def generate_strings(charset, length):
    """
        Returns a string with a given length containing a subset of
        characters from a given charset.
    """
    return ''.join(random.choice(charset) for i in range(length))