packages/Utils/rng/RNG_Control.cc
//---------------------------------------------------------------------------//
// MEMBER FUNCTIONS
//---------------------------------------------------------------------------//
/*!
 * \brief Create a SPRNG random number object at the current stream index.
 *
 * \return SPRNG random number object
 *
 * This function creates a SPRNG random number state at the current stream
 * index.  After creation, the stream index is automatically advanced by one.
 * Additionally, the created SPRNG object takes ownership of the random
 * number state from the SPRNG library.  No further work on the part of
 * RNG_Control is required.
 */
MEMBER FUNCTIONS
\brief Create a SPRNG random number object at the current stream index.

\return SPRNG random number object

This function creates a SPRNG random number state at the current stream
index.  After creation, the stream index is automatically advanced by one.
Additionally, the created SPRNG object takes ownership of the random
number state from the SPRNG library.  No further work on the part of
RNG_Control is required.
MEMBER FUNCTIONS \ brief Create a SPRNG random number object at the current stream index . \ return SPRNG random number object This function creates a SPRNG random number state at the current stream index . After creation the stream index is automatically advanced by one . Additionally the created SPRNG object takes ownership of the random number state from the SPRNG library . No further work on the part of RNG_Control is required .
RNG_Control::RNG_t RNG_Control::rng()
{
    REQUIRE(d_stream <= d_number);
    RNG random = make_random_number_generator();
    d_stream++;
    return random;
}
RNG_Control :: RNG_t RNG_Control :: rng ( ) { REQUIRE ( d_stream <= d_number ) ; RNG random = make_random_number_generator ( ) ; d_stream ++ ; return random ; }
MEMBER FUNCTIONS
 \brief Create a SPRNG random number object at the current stream index.
MEMBER FUNCTIONS \ brief Create a SPRNG random number object at the current stream index .
// create a new Rnd object // advance the counter // return the object