|
0.45.0
|
#include <iaRandomNumberGenerator.h>
Public Member Functions | |
| iaRandomNumberGenerator (uint64 seed=1337) | |
| ~iaRandomNumberGenerator ()=default | |
| void | setSeed (uint64 seed) |
| uint64 | getNext () |
| int64 | getNextRange (int64 min, int64 max) |
| int64 | getNextRangeExponentialDecrease (int64 min, int64 max, float64 lambda) |
| int64 | getNextRangeExponentialIncrease (int64 min, int64 max, float64 lambda) |
| int64 | getNextRange (int64 range) |
| float64 | getNextFloat () |
| float64 | getNextFloatRange (float64 min, float64 max) |
pseudo random number generator
| iaux::iaRandomNumberGenerator::iaRandomNumberGenerator | ( | uint64 | seed = 1337 | ) |
init seed
|
default |
does nothing
| uint64 iaux::iaRandomNumberGenerator::getNext | ( | ) |
| float64 iaux::iaRandomNumberGenerator::getNextFloat | ( | ) |
| min | the min value returned |
| max | the max value returned |
| min | the min value returned |
| max | the max value returned |
| range | the range of values |
| int64 iaux::iaRandomNumberGenerator::getNextRangeExponentialDecrease | ( | int64 | min, |
| int64 | max, | ||
| float64 | lambda | ||
| ) |
high chances towards min and lower chances towards max
| 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 |
| int64 iaux::iaRandomNumberGenerator::getNextRangeExponentialIncrease | ( | int64 | min, |
| int64 | max, | ||
| float64 | lambda | ||
| ) |
high chances towards max and lower chances towards min
| 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 |
| void iaux::iaRandomNumberGenerator::setSeed | ( | uint64 | seed | ) |
sets the seed
| seed | the seed |