#include <SequentialRandomEngine.h>
◆ peek()
virtual int SequentialRandomEngine::peek |
( |
int |
hi | ) |
const |
|
inlineoverridevirtual |
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.
◆ random()
virtual int SequentialRandomEngine::random |
( |
int |
hi | ) |
|
|
inlineoverridevirtual |
- Parameters
-
hi | Upper bound for the result. Must be greater than zero. |
- Returns
- Random number in range
[0, hi)
.
Implements RandomEngine.
◆ randomFloat()
virtual float SequentialRandomEngine::randomFloat |
( |
| ) |
|
|
inlineoverridevirtual |
- Returns
- Random floating point number in range
[0, 1)
.
Implements RandomEngine.
◆ seed()
virtual void SequentialRandomEngine::seed |
( |
int |
seed | ) |
|
|
inlineoverridevirtual |
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.
◆ _state
unsigned SequentialRandomEngine::_state = 0 |
|
private |
The documentation for this class was generated from the following file: