iaux::iaRandom Class Reference

#include <iaRandom.h>

Static Public Member Functions

static void setSeed (uint64 seed)
 
static uint64 getNext ()
 
static int64 getNextRange (int64 min, int64 max)
 
static int64 getNextRangeExponentialDecrease (int64 min, int64 max, float64 lambda=2.0)
 
static int64 getNextRangeExponentialIncrease (int64 min, int64 max, float64 lambda=2.0)
 
static int64 getNextRange (int64 range)
 
static float64 getNextFloat ()
 
static float64 getNextFloatRange (float64 min, float64 max)
 

Detailed Description

wrapper for one random number generator

if you need individual random number generators use iaRandomNumberGenerator instead of iaRandom

Member Function Documentation

◆ 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()

float64 iaux::iaRandom::getNextFloatRange ( float64  min,
float64  max 
)
static
Returns
next random number as float min-max
Parameters
minthe min value returned
maxthe max value returned

◆ getNextRange() [1/2]

int64 iaux::iaRandom::getNextRange ( int64  min,
int64  max 
)
static
Returns
next random number [min, max]
Parameters
minthe min value returned
maxthe max value returned

◆ getNextRange() [2/2]

int64 iaux::iaRandom::getNextRange ( int64  range)
static
Returns
next random number [0, range-1]
Parameters
rangethe range of values

◆ getNextRangeExponentialDecrease()

int64 iaux::iaRandom::getNextRangeExponentialDecrease ( int64  min,
int64  max,
float64  lambda = 2.0 
)
static
Returns
next random number with exponential distribution [min, max]

high chances towards min and lower chances towards max

Parameters
minthe min value returned
maxthe max value returned
lambdathis value determines where the median of the distribution curve lies before it gets scaled back to the min max range

◆ getNextRangeExponentialIncrease()

int64 iaux::iaRandom::getNextRangeExponentialIncrease ( int64  min,
int64  max,
float64  lambda = 2.0 
)
static
Returns
next random number with exponential distribution [min, max]

high chances towards min and lower chances towards max

Parameters
minthe min value returned
maxthe max value returned
lambdathis 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

sets the seed

Parameters
seedthe seed

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