decfloat_randtest, decfloat_randtest_special
Synopsis
#include <flint/decimal.h>int decfloat_randtest(decfloat_t res, flint_rand_t state, gr_ctx_t ctx)sourceint decfloat_randtest_special(decfloat_t res, flint_rand_t state, gr_ctx_t ctx)sourceGenerates a random element rounded to the context precision, respectively a random element which may have more significant digits than the context precision.
Cite this page
The FLINT team, “decfloat_randtest, decfloat_randtest_special (decimal.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/decimal/decfloat_randtest.html (generated 2026-10-20).
@misc{flint-doc-decimal-decfloat-randtest,
author = {{The FLINT team}},
title = {{decfloat\_randtest, decfloat\_randtest\_special (decimal.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/decimal/decfloat_randtest.html},
note = {Generated 2026-10-20}
}