import random
import string


def generate_filename(postfix=".txt"):
    """Random file name generator."""
    return (
        "".join(
            random.choices(
                string.ascii_lowercase + string.digits,
                k=random.randrange(5, 10),
            )
        )
        + postfix
    )