from typing import Sequence
import string
import random


def random_string(length: int,
                  prefix: str = '',
                  suffix: str = '',
                  choices: Sequence[str] = string.ascii_lowercase) -> str:
    """Our convenience function to generate random string for object names.

    Args:
        length: How many random characters to choose from choices.
        prefix: Prefix to add to random string generated.
        suffix: Suffix to add to random string generated.
        choices: A generator of things to choose from.
    """
    random_part = ''.join([random.choice(choices) for _ in range(length)])
    return ''.join([prefix, random_part, suffix])