FLINT3.7.0-dev

_nmod_poly_conway_rand

Synopsis#include <flint/nmod_poly.h>
ulong _nmod_poly_conway_rand(slong * degree, flint_rand_t state, int type)source

Returns 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).