def METHOD_NAME(T, prn_seed=None):
    """ Samples an energy from the Maxwell fission distribution based
    on a direct sampling scheme.
    Parameters
    ----------
    T : float
        Spectrum parameter
    prn_seed : int
        Pseudorandom number generator (PRNG) seed; if None, one will be
        generated randomly.
    Returns
    -------
    float
        Sampled outgoing energy
    """
    if prn_seed is None:
        prn_seed = getrandbits(63)
    return _dll.METHOD_NAME(T, c_uint64(prn_seed))