import string
import random


def gen_rand_pass (len):
    """ Generates a random password.

    Note that this password is not subject to a password composition policy.

    Args:
        len (int): The length of the password to generate.
    Returns:
        str: The generated password
    """
    alpha = string.ascii_letters + string.digits + string.punctuation
    return ''.join(random.choice(alpha) for i in range(len))