FST4-owned pseudo-random number generator (UCRT-compatible LCG), replacing platform-specific std::rand()/std::srand(). More...
Go to the source code of this file.
Namespaces | |
| namespace | FST |
| The Feature Selection Toolbox 4 library: every library component – data access, criteria and classifiers, search algorithms, result trackers and the global infrastructure – lives in this namespace. | |
Functions | |
| unsigned int & | FST::_fst_rand_state () |
| LCG state, one instance per thread; each thread starts from the default state 1. | |
| void | FST::fst_srand (unsigned int seed) |
| Seeds the calling thread's FST4 PRNG; use instead of std::srand(). | |
| int | FST::fst_rand () |
| Returns the next pseudo-random draw in 0..FST_RAND_MAX; use instead of std::rand(). | |
| unsigned long | FST::fst_rand_below (const unsigned long n) |
| Returns a pseudo-random index in 0..n-1 (n >= 1); use instead of fst_rand()n. | |
Variables | |
| const int | FST::FST_RAND_MAX = 32767 |
| Maximum value fst_rand() can return; use instead of the libc macro RAND_MAX. | |
FST4-owned pseudo-random number generator (UCRT-compatible LCG), replacing platform-specific std::rand()/std::srand().
======================================================================