#include <XFuFastRandom.h>
Public Member Functions | |
XFuFastRandom () | |
Constructor. | |
XFuFastRandom (UINT32 aSeed) | |
Constructor with seed input. | |
UINT32 | next () |
Returns the next random number. | |
void | seed (UINT32 aSeed) |
Re-seeds the random number generator. | |
Protected Attributes | |
UINT32 | mSeed1 |
Internal random number generator data. | |
UINT32 | mSeed2 |
Internal random number generator data. |
Please note that the output from this pseudorandom number generator is pretty poor, but it is suitable when all you need is just some noise.
Definition at line 21 of file XFuFastRandom.h.
|
Constructor.
Definition at line 20 of file XFuFastRandom.cpp. References seed(). |
|
Constructor with seed input.
Definition at line 26 of file XFuFastRandom.cpp. References seed(). |
|
Returns the next random number.
Definition at line 32 of file XFuFastRandom.h. |
|
Re-seeds the random number generator.
Definition at line 32 of file XFuFastRandom.cpp. References mSeed1, and mSeed2. Referenced by XFuFastRandom(). |
|
Internal random number generator data.
Definition at line 47 of file XFuFastRandom.h. |
|
Internal random number generator data.
Definition at line 48 of file XFuFastRandom.h. |
![]() | ||||
![]() |
Confidential Copyright © 2002-2003 Fathammer | with doxygen by Dimitri van Heesch |