FLINT3.7.0-dev

ca_randtest_same_nf

Synopsis#include <flint/ca.h>
void ca_randtest_same_nf(ca_t res, flint_rand_t state, const ca_t x, slong bits, slong den_bits, ca_ctx_t ctx)source

Sets res to a random element of the field of x, with numerator coefficients of up to bits bits and a denominator of up to den_bits bits. The number x must be an element of a field \mathbb{Q}(a) with one algebraic generator.

Cite this page

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