Return the random type of the random engine. More...

Functions

AFAPI af_err af_random_engine_get_type (af_random_engine_type *rtype, const af_random_engine engine)
 C Interface for getting random engine type. More...
 
AFAPI af_err af_random_engine_get_seed (uintl *const seed, af_random_engine engine)
 C Interface for getting the seed of a random engine. More...
 

Detailed Description

Return the random type of the random engine.

Returns
the af::randomEngineType associated with random engine

Function Documentation

§ af_random_engine_get_seed()

AFAPI af_err af_random_engine_get_seed ( uintl *const  seed,
af_random_engine  engine 
)

C Interface for getting the seed of a random engine.

Parameters
[out]seedThe pointer to the returned seed.
[in]engineThe random engine object
Returns
AF_SUCCESS if the execution completes properly

§ af_random_engine_get_type()

AFAPI af_err af_random_engine_get_type ( af_random_engine_type rtype,
const af_random_engine  engine 
)

C Interface for getting random engine type.

Parameters
[out]rtypeThe type of the random number generator
[in]engineThe random engine object
Returns
AF_SUCCESS if the execution completes properly