import random


def generate_gender() -> bool:
    """Returns a random gender. True is male and False is female.

    Returns:
        bool: A gender represented by a bool.
    """
    return bool(random.getrandbits(1))