import random
import string


def random_words(n_words=1000, other_word_dict={}):
    """ Generator of random (ascii) words.

    Parameters
    ----------
    n_words: int
        Number of words to generate

    Returns
    -------

    str:
        List of words
    """

    word_dict = {}
    i = 0
    # Generate words until we have enough.
    while len(word_dict) < n_words:
        n_letters = random.randint(1, 10)
        new_word = ""
        for _ in range(n_letters):
            new_word += random.choice(string.ascii_letters)
        if new_word not in word_dict and new_word not in other_word_dict:
            word_dict[new_word] = i
            i += 1
    return list(word_dict)