#include <PseudoRandomSource.h>
Public Member Functions | |
| PseudoRandomSource (UWORD32 s) | |
| UWORD32 | getValue (UWORD32 n) |
Private Attributes | |
| UWORD32 | Value |
Static Private Attributes | |
| static const UWORD32 | A = 1367208549 |
| static const UWORD32 | C = 1 |
| PseudoRandomSource::PseudoRandomSource | ( | UWORD32 | s | ) | [inline] |
construct a PseudoRandomSource object
| s | the seed |
get a pseudo-random value from {0,...,n-1}
| n | the range of the random value to be returned |
const UWORD32 PseudoRandomSource::A = 1367208549 [static, private] |
const UWORD32 PseudoRandomSource::C = 1 [static, private] |
UWORD32 PseudoRandomSource::Value [private] |
1.5.1