setDefaultRandomEngineType

Functions
setDefaultRandomEngineType
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

Set the default random engine type. More...

## Functions
AFAPI void | setDefaultRandomEngineType (randomEngineType rtype)
AFAPI af_err | af_set_default_random_engine_type (const af_random_engine_type rtype)
| C Interface for setting the type of the default random engine. More...

## Detailed Description

Set the default random engine type.

This random engine type is used when calling random number functions without an af::randomEngine object as an argument.

## Function Documentation

## ◆ af_set_default_random_engine_type()

AFAPI af_err af_set_default_random_engine_type | ( | const af_random_engine_type | rtype | ) |

C Interface for setting the type of the default random engine.

Parameters

  [in] | rtype | The type of the random number generator

Returns
  AF_SUCCESS if the execution completes properly

## ◆ setDefaultRandomEngineType()

AFAPI void af::setDefaultRandomEngineType | ( | randomEngineType | rtype | ) |

Parameters

  [in] | rtype | The type of the random number generator