plll  1.0
plll::arithmetic::RealContext::UniformRNG Class Reference

Public Member Functions

Real randomUniform (const RealContext &rc)
 Creates and returns a uniformly distributed floating point number in the interval $[0, 1)$. More...
 
void randomUniform (Real &r)
 Creates a uniformly distributed floating point number in the interval $[0, 1)$. More...
 
 UniformRNG (RandomNumberGenerator &rng) PLLL_INTERNAL_NOTHROW_POSTFIX_INLINE
 Creates a new uniform random number generator based on the given random number generator.
 

Detailed Description

Definition at line 3498 of file arithmetic-gmp.hpp.

Member Function Documentation

Real plll::arithmetic::RealContext::UniformRNG::randomUniform ( const RealContext rc)
inline

Creates and returns a uniformly distributed floating point number in the interval $[0, 1)$.

Parameters
rcThe context whose precision to use for the result.
Returns
The random number.

Definition at line 3520 of file arithmetic-gmp.hpp.

void plll::arithmetic::RealContext::UniformRNG::randomUniform ( Real r)
inline

Creates a uniformly distributed floating point number in the interval $[0, 1)$.

Parameters
rWhere to store the result.

Definition at line 3533 of file arithmetic-gmp.hpp.


The documentation for this class was generated from the following file: