randomEngine Class Reference

Public Member Functions
randomEngine Class Reference
Complete List of ArrayFire Functions ArrayFire Functions by Category » Functions to create and modify Arrays » | Functions to create arrays. » Random Number Generation

A random number generator class. More...

`#include <random.h>`

## Public Member Functions
| randomEngine (randomEngineType typeIn=AF_RANDOM_ENGINE_DEFAULT, uintl seedIn=0)
| This function creates a af::randomEngine object with a af::randomEngineType and a seed. More...
| randomEngine (const randomEngine &in)
| Copy constructor for af::randomEngine. More...
| randomEngine (af_random_engine engine)
| Creates a copy of the random engine object from a af_random_engine handle. More...
| ~randomEngine ()
randomEngine & | operator= (const randomEngine &in)
void | setType (const randomEngineType type)
randomEngineType | getType (void)
void | setSeed (const uintl seed)
uintl | getSeed (void) const
af_random_engine | get (void) const

## Detailed Description

A random number generator class.

## Constructor & Destructor Documentation

## § ~randomEngine()

~randomEngine | ( |  | ) |

## Member Function Documentation

## § get()

af_random_engine get | ( | void |  | ) | const

## § getSeed()

uintl getSeed | ( | void |  | ) | const

## § getType()

randomEngineType getType | ( | void |  | ) |

## § operator=()

randomEngine& operator= | ( | const randomEngine & | in | ) |

## § setSeed()

void setSeed | ( | const uintl | seed | ) |

## § setType()

void setType | ( | const randomEngineType | type | ) |

The documentation for this class was generated from the following file:

- random.h