FLINT3.7.0-dev

fq_rand, fq_rand_not_zero

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

Set rop to a uniformly random element, respectively a uniformly random nonzero element.

Cite this page

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