ExRandom  2.1
Multi-precision floating-point types
Back to Examples using u-rands. Forward to MPFR functions. Up to Contents.

u_rand::value supports several multi-precision floating-point types. This allows the random number distributions unit_normal_distribution, unit_exponential_distribution, and unit_uniform_distribution to be realized with RealType set to any of the float-point types.

The libraries you might need are

The types supported are

cpp_dec_float is notable in that it is the only floating-point type in this list with a radix of 10.

These have been tested under Linux only.

multiprec_test.cpp illustrates the use of unit _normal_distribution with these types.

Back to Examples using u-rands. Forward to MPFR functions. Up to Contents.