ca_randtest
Synopsis
#include <flint/ca.h>Sets res to a random number obtained by evaluating a random expression. At depth 0 it is a random rational number, an element of a quadratic field with coefficients of up to bits bits, or a constant such as \pi; for positive depth it may instead be an arithmetic operation or a function applied to operands generated recursively with depth depth - 1. The result is always a number, not a special value.
Cite this page
The FLINT team, “ca_randtest (ca.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/ca/ca_randtest.html (generated 2026-10-20).
@misc{flint-doc-ca-ca-randtest,
author = {{The FLINT team}},
title = {{ca\_randtest (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.html},
note = {Generated 2026-10-20}
}