getType

Functions
getType
Complete List of ArrayFire FunctionsComplete List of ArrayFire Functions ArrayFire Functions by Category » Functions to create and modify Arrays » | Functions to create arrays. » | Random Number Generation » randomEngine

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] | seed | The pointer to the returned seed.
  [in] | engine | The 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] | rtype | The type of the random number generator
  [in] | engine | The random engine object

Returns
  AF_SUCCESS if the execution completes properly