FLINT3.7.0-dev

fq_randtest, fq_randtest_not_zero

Synopsis#include <flint/fq.h>
void fq_randtest(fq_t rop, flint_rand_t state, const fq_ctx_t ctx)source
void fq_randtest_not_zero(fq_t rop, flint_rand_t state, const fq_ctx_t ctx)source

Set rop to a random element, respectively a random nonzero element, for testing: with probability 1/2 the coefficients are uniform, otherwise most of them are zero.

Cite this page

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