_nmod_poly_conway_rand
Synopsis
#include <flint/nmod_poly.h>ulong _nmod_poly_conway_rand(slong * degree, flint_rand_t state, int type)sourceReturns a random prime p and sets degree to a random d such that _nmod_poly_conway(op, p, d) succeeds, for test code. For type 0 the pair is any tabulated one, for 1 the degree is less than 15, for 2 the prime is less than 2^{10}, and for 3 both. Other values of type throw FLINT_ERROR.
Cite this page
The FLINT team, “_nmod_poly_conway_rand (nmod_poly.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/nmod_poly/_nmod_poly_conway_rand.html (generated 2026-10-20).
@misc{flint-doc-nmod-poly-nmod-poly-conway-rand,
author = {{The FLINT team}},
title = {{\_nmod\_poly\_conway\_rand (nmod\_poly.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/nmod_poly/_nmod_poly_conway_rand.html},
note = {Generated 2026-10-20}
}