#include <iaRandom.h>
wrapper for one random number generator
if you need individual random number generators use iaRandomNumberGenerator instead of iaRandom
◆ getNext()
uint64 iaux::iaRandom::getNext |
( |
| ) |
|
|
static |
- Returns
- next random number
◆ getNextFloat()
float64 iaux::iaRandom::getNextFloat |
( |
| ) |
|
|
static |
- Returns
- next random number as float 0.0-1.0
◆ getNextFloatRange()
- Returns
- next random number as float min-max
- Parameters
-
min | the min value returned |
max | the max value returned |
◆ getNextRange() [1/2]
- Returns
- next random number [min, max]
- Parameters
-
min | the min value returned |
max | the max value returned |
◆ getNextRange() [2/2]
- Returns
- next random number [0, range-1]
- Parameters
-
◆ getNextRangeExponentialDecrease()
- Returns
- next random number with exponential distribution [min, max]
high chances towards min and lower chances towards max
- Parameters
-
min | the min value returned |
max | the max value returned |
lambda | this value determines where the median of the distribution curve lies before it gets scaled back to the min max range |
◆ getNextRangeExponentialIncrease()
- Returns
- next random number with exponential distribution [min, max]
high chances towards min and lower chances towards max
- Parameters
-
min | the min value returned |
max | the max value returned |
lambda | this value determines where the median of the distribution curve lies before it gets scaled back to the min max range |
◆ setSeed()
void iaux::iaRandom::setSeed |
( |
uint64 |
seed | ) |
|
|
static |
The documentation for this class was generated from the following files: