#include <XFuRandom.h>
Public Member Functions | |
UINT32 | next () |
Returns the next random number. | |
void | seed (UINT32 aSeed) |
Re-seeds the random number generator. | |
~XFuRandom () | |
Destructor. | |
Static Public Member Functions | |
XFuRandom * | create () |
Static constructor. | |
XFuRandom * | create (UINT32 aSeed) |
Static constructor. | |
Private Member Functions | |
XFuRandom () | |
Protected constructor. | |
Private Attributes | |
UINT32 * | mTable |
UINT32 | mTableIndex |
Definition at line 17 of file XFuRandom.h.
|
Destructor.
Definition at line 36 of file XFuRandom.cpp. References mTable. |
|
Protected constructor.
Definition at line 43 of file XFuRandom.cpp. |
|
Static constructor.
Definition at line 54 of file XFuRandom.cpp. |
|
Static constructor. Random generator is initialized using system timer as the random seed value.
Definition at line 48 of file XFuRandom.cpp. |
|
Returns the next random number.
Definition at line 74 of file XFuRandom.cpp. References mTable, mTableIndex, XFURMP_A, XFURMP_B, XFURMP_C, XFURMP_HIMASK, XFURMP_L, XFURMP_LOMASK, XFURMP_M, XFURMP_N, XFURMP_S, XFURMP_T, and XFURMP_U. |
|
Re-seeds the random number generator.
Definition at line 107 of file XFuRandom.cpp. References mTable, mTableIndex, and XFURMP_N. Referenced by create(). |
|
Definition at line 45 of file XFuRandom.h. Referenced by create(), next(), seed(), and ~XFuRandom(). |
|
Definition at line 46 of file XFuRandom.h. |
![]() | ||||
![]() |
Confidential Copyright © 2002-2003 Fathammer | with doxygen by Dimitri van Heesch |