def dmp_resultant(f, g, u, K, includePRS=False):
    if not u:
        return dup_resultant(f, g, K, includePRS=includePRS)

    if includePRS:
        return dmp_prs_resultant(f, g, u, K)

    if K.has_Field:
        if K.is_QQ and query('USE_COLLINS_RESULTANT'):
            return dmp_qq_collins_resultant(f, g, u, K)
    else:
        if K.is_ZZ and query('USE_COLLINS_RESULTANT'):
            return dmp_zz_collins_resultant(f, g, u, K)

    return dmp_prs_resultant(f, g, u, K)[0]
Test that the random() function works "properly".
dataset/ETHPy150Open sympy/sympy/sympy/polys/euclidtools.py/dmp_resultant--crossover with--dataset/ETHPy150Open mozilla/app-validator/tests/js/test_math.py/TestMathFuncs.test_random