vrecko
virtual reality framework
|
#include <randomindex.h>
Public Member Functions | |
RandomIndex () | |
void | addProbability (double p) |
unsigned int | getRandomIndex () |
Static Public Member Functions | |
static void | init () |
Class for generating random index for stochastic rule selection
|
inline |
Constructor
|
inline |
Add probability factor of rule.
p | probability |
|
inline |
Returns random index according to probability factor
|
inlinestatic |
Initialize random generator