getDefaultRandomEngine

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

Returns the default random engine object. More...

## Functions
AFAPI randomEngine | getDefaultRandomEngine (void)
AFAPI af_err | af_get_default_random_engine (af_random_engine *engine)
| C Interface for getting the default random engine. More...

## Detailed Description

Returns the default random engine object.

Returns the af::randomEngine that is currently set as default.

## Function Documentation

## ◆ af_get_default_random_engine()

AFAPI af_err af_get_default_random_engine | ( | af_random_engine * | engine | ) |

C Interface for getting the default random engine.

Parameters

  [out] | engine | The pointer to returned default random engine object

Returns
  AF_SUCCESS if the execution completes properly

## ◆ getDefaultRandomEngine()

AFAPI randomEngine af::getDefaultRandomEngine | ( | void |  | ) |

Returns
  the af::randomEngine object for the default random engine