import secrets


def passphrase(w, n):
    """
    Generate passphrase

    :param w: word list
    :type w: list
    :param n: number of words
    :type n: int
    :return: passphrase
    :rtype: str
    """
    # Store the random string
    rd = ""
    # Get n random words
    for _ in range(n):
        rd += secrets.choice(w) + " "
    return rd