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)sourceSets 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).
@misc{flint-doc-ca-ca-randtest-same-nf,
author = {{The FLINT team}},
title = {{ca\_randtest\_same\_nf (ca.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/ca/ca_randtest_same_nf.html},
note = {Generated 2026-10-20}
}