FLINT3.7.0-dev

d_randtest_special

Synopsis#include <flint/double_extras.h>
double d_randtest_special(flint_rand_t state, slong minexp, slong maxexp)source

Like d_randtest_signed, but returns a positive number, a negative number, zero or a special value with probability 1/4 each. The special value is NaN with probability 1/2 and +\infty or -\infty with probability 1/4 each.

Cite this page

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