FLINT3.7.0-dev

decfloat_randtest, decfloat_randtest_special

Synopsis#include <flint/decimal.h>
int decfloat_randtest(decfloat_t res, flint_rand_t state, gr_ctx_t ctx)source
int decfloat_randtest_special(decfloat_t res, flint_rand_t state, gr_ctx_t ctx)source

Generates 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).