FLINT3.7.0-dev

psl2z_randtest

Synopsis#include <flint/acb_modular.h>
void psl2z_randtest(psl2z_t g, flint_rand_t state, slong bits)source

Sets g to a random element with entries of at most about bits bits (at least 1): random a and d are divided by their GCD, completed with Bézout coefficients, and the signs are canonicalised.

Cite this page

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