from random import randint


def rng_string(alphabet, length):
    """
    Generate a string of a given length
    String consists of numbers between 0 - alphabet, inclusive
    """
    bitList = []
    for _ in range(0, length):
        bitList.append(str(randint(0, alphabet)))
    return ''.join(bitList)


def generate_test_strings(nr_strings, alphabet, length):
    """
    Generate a number of strings
    Between 0 - alphabet
    Of random length between 0 and length
    Returns an iterator loop over function to get one and one string
    """
    for _ in range(0, nr_strings):
        yield rng_string(alphabet, randint(0, length))


def generate_strings(nr_strings, alphabet, length):
    """
    Generate a number of strings
    Between 0 - alphabet
    Of random length between 0 and length
    Returns a list of strings
    """
    strings = []
    for _ in range(0, nr_strings):
        strings.append(rng_string(alphabet, randint(0, length)))
    return strings

142619a5bc68520b71a3af7c746bd7d6504b8422
<mask token>


def rng_string(alphabet, length):
    """
    Generate a string of a given length
    String consists of numbers between 0 - alphabet, inclusive
    """
    bitList = []
    for _ in range(0, length):
        bitList.append(str(randint(0, alphabet)))
    return ''.join(bitList)


<mask token>

<mask token>


def rng_string(alphabet, length):
    """
    Generate a string of a given length
    String consists of numbers between 0 - alphabet, inclusive
    """
    bitList = []
    for _ in range(0, length):
        bitList.append(str(randint(0, alphabet)))
    return ''.join(bitList)


def generate_test_strings(nr_strings, alphabet, length):
    """
    Generate a number of strings
    Between 0 - alphabet
    Of random length between 0 and length
    Returns an iterator loop over function to get one and one string
    """
    for _ in range(0, nr_strings):
        yield rng_string(alphabet, randint(0, length))


<mask token>

<mask token>


def rng_string(alphabet, length):
    """
    Generate a string of a given length
    String consists of numbers between 0 - alphabet, inclusive
    """
    bitList = []
    for _ in range(0, length):
        bitList.append(str(randint(0, alphabet)))
    return ''.join(bitList)


def generate_test_strings(nr_strings, alphabet, length):
    """
    Generate a number of strings
    Between 0 - alphabet
    Of random length between 0 and length
    Returns an iterator loop over function to get one and one string
    """
    for _ in range(0, nr_strings):
        yield rng_string(alphabet, randint(0, length))


def generate_strings(nr_strings, alphabet, length):
    """
    Generate a number of strings
    Between 0 - alphabet
    Of random length between 0 and length
    Returns a list of strings
    """
    strings = []
    for _ in range(0, nr_strings):
        strings.append(rng_string(alphabet, randint(0, length)))
    return strings

from random import randint


def rng_string(alphabet, length):
    """
    Generate a string of a given length
    String consists of numbers between 0 - alphabet, inclusive
    """
    bitList = []
    for _ in range(0, length):
        bitList.append(str(randint(0, alphabet)))
    return ''.join(bitList)


def generate_test_strings(nr_strings, alphabet, length):
    """
    Generate a number of strings
    Between 0 - alphabet
    Of random length between 0 and length
    Returns an iterator loop over function to get one and one string
    """
    for _ in range(0, nr_strings):
        yield rng_string(alphabet, randint(0, length))


def generate_strings(nr_strings, alphabet, length):
    """
    Generate a number of strings
    Between 0 - alphabet
    Of random length between 0 and length
    Returns a list of strings
    """
    strings = []
    for _ in range(0, nr_strings):
        strings.append(rng_string(alphabet, randint(0, length)))
    return strings
