FLINT3.7.0-dev

gr_poly_randtest

Synopsis#include <flint/gr_poly.h>
int gr_poly_randtest(gr_poly_t poly, flint_rand_t state, slong len, gr_ctx_t ctx)source

Sets poly to a random polynomial of length at most len, with coefficients from gr_randtest. The distribution is meant for testing: it is not uniform and produces many special values.

Cite this page

The FLINT team, “gr_poly_randtest (gr_poly.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/gr_poly/gr_poly_randtest.html (generated 2026-10-20).