setSeed

Functions
setSeed
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 seed of the random engine. More...

## Functions
AFAPI af_err | af_random_engine_set_seed (af_random_engine *engine, const uintl seed)
| C Interface for setting the seed of a random engine. More...

## Detailed Description

Sets the seed of the random engine.

Parameters

  [in] | seed | The initializing seed of the random number generator

## Function Documentation

## ◆ af_random_engine_set_seed()

AFAPI af_err af_random_engine_set_seed | ( | af_random_engine * | engine,
|  | const uintl | seed
| ) |  |

C Interface for setting the seed of a random engine.

Parameters

  [out] | engine | The pointer to the returned random engine object
  [in] | seed | The initializing seed of the random number generator

Returns
  AF_SUCCESS if the execution completes properly