setType

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

Sets the random type of the random engine. More...

## Functions
AFAPI af_err | af_random_engine_set_type (af_random_engine *engine, const af_random_engine_type rtype)
| C Interface for changing random engine type. More...

## Detailed Description

Sets the random type of the random engine.

Parameters

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

## Function Documentation

## ◆ af_random_engine_set_type()

AFAPI af_err af_random_engine_set_type | ( | af_random_engine * | engine,
|  | const af_random_engine_type | rtype
| ) |  |

C Interface for changing random engine type.

Parameters

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

Returns
  AF_SUCCESS if the execution completes properly