Nebula
|
#include <randomnumbertable.h>
A table-based random-number generator.
Returns the same random number for a given key.
Static Public Member Functions | |
static float | Rand (IndexT key) |
return a pseudo-random number between 0 and 1 | |
static float | Rand (IndexT key, float minVal, float maxVal) |
return a pseudo random number between min and max | |
Static Private Attributes | |
static const SizeT | tableSize = 2048 |
static const float | randTable [tableSize] |
|
inlinestatic |
return a pseudo-random number between 0 and 1
|
inlinestatic |
return a pseudo random number between min and max
|
staticprivate |
|
staticprivate |