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

Set the seed for random number generation. More...

## Functions
AFAPI void | setSeed (const uintl seed)
AFAPI af_err | af_set_seed (const uintl seed)

## Detailed Description

Set the seed for random number generation.

Sets the seed for the current default random engine.

## Function Documentation

## ◆ af_set_seed()

AFAPI af_err af_set_seed | ( | const uintl | seed | ) |

Parameters

  [in] | seed | A 64 bit unsigned integer

## ◆ setSeed()

AFAPI void af::setSeed | ( | const uintl | seed | ) |

Parameters

  [in] | seed | A 64 bit unsigned integer

Examples:
  machine_learning/geneticalgorithm.cpp.