#include <TracingRandomEngine.h>
|
template<class T > |
void | printTrace (const char *function, const T &value) const |
|
◆ TracingRandomEngine()
◆ peek()
int TracingRandomEngine::peek |
( |
int |
hi | ) |
const |
|
overridevirtual |
Note that this method is mainly for debugging, implementation is not required to be efficient.
- Parameters
-
hi | Upper bound for the result. Must be greater than zero. |
- Returns
- Random number that the next call to
random(hi)
will return.
Implements RandomEngine.
◆ printTrace()
template<class T >
void TracingRandomEngine::printTrace |
( |
const char * |
function, |
|
|
const T & |
value |
|
) |
| const |
|
private |
◆ random()
int TracingRandomEngine::random |
( |
int |
hi | ) |
|
|
overridevirtual |
- Parameters
-
hi | Upper bound for the result. Must be greater than zero. |
- Returns
- Random number in range
[0, hi)
.
Implements RandomEngine.
◆ randomFloat()
float TracingRandomEngine::randomFloat |
( |
| ) |
|
|
overridevirtual |
- Returns
- Random floating point number in range
[0, 1)
.
Implements RandomEngine.
◆ seed()
void TracingRandomEngine::seed |
( |
int |
seed | ) |
|
|
overridevirtual |
Reinitializes this random engine with the provided seed value. Passing 0
should be equivalent to calling an in-place destructor and then reconstructing the object.
- Parameters
-
Implements RandomEngine.
◆ _base
◆ _platform
Platform* TracingRandomEngine::_platform = nullptr |
|
private |
The documentation for this class was generated from the following files: