FLINT3.7.0-dev

gr_randtest_invertible

Synopsis#include <flint/gr.h>
int gr_randtest_invertible(gr_ptr res, flint_rand_t state, gr_ctx_t ctx)source

Sets res to a random invertible element. The default tries gr_randtest and gr_randtest_small a few times each and falls back to \pm 1.

Cite this page

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