#include <general-functions.hh>
Public Methods | |
TItem | operator() (const size_t kzMAX) const |
Definition at line 332 of file general-functions.hh.
|
Generates a random number between 0 to kzMAX (inclusive). It uses this formula:
Where:
It takes the higher-order bits of the random number which, usually are more random than the low-order bits. If you want more entropy in the generated random number, you must use std::srand().
Definition at line 352 of file general-functions.hh. |