![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cRandomCombo.h>
Public Member Functions | |
| cRandomCombo2 (const void *pData, size_t iSize) | |
| virtual | ~cRandomCombo2 () |
| virtual void | InitSeed (const void *pData, size_t iSize) override |
| virtual double | get_RandDouble () override |
| the default random number generator. More... | |
| virtual UINT | GetRandUX (UINT nScale) override |
Public Member Functions inherited from GrayLib::cRandomFloat | |
| virtual float | get_RandFloat () |
| double | GetRandDX (double nScale) |
| float | GetRandFX (float nScale) |
| float | GetRandFRange (float fRangeLo, float fRangeHi) |
| UNITTEST_FRIEND (cRandomFloat) | |
Public Member Functions inherited from Gray::cRandomBase | |
| cRandomBase () noexcept | |
| virtual | ~cRandomBase () |
| void | InitSeed (IRandomNoise *pSrc, size_t iSize) |
| the default random number generator. NOT Thread Safe! More... | |
| void | InitSeedDefault (size_t iSize=sizeof(int)) |
| void | InitSeedUns (UINT iSeed) |
| virtual HRESULT | GetNoise (void *pData, size_t iSize) override |
| fill array with random. return # filled. More... | |
| virtual UINT | get_RandUns () |
| bool | GetRandBool () |
| int | GetRandIRange (int iRangeLo, int iRangeHi) |
Public Attributes | |
| _TYPE1 | m_r1 |
| _TYPE2 | m_r2 |
Additional Inherited Members | |
Public Types inherited from Gray::cRandomBase | |
| typedef UINT | SEED_t |
| default seed size might be 32 or 64 bit depending on k_RAND_MAX. More... | |
class for combining two different floating point based random number generators. A combination of two random number generators is generally better than any of the two alone. The two generators should preferably be of very different design. For cryptographic random usage.
|
inline |
|
inlinevirtual |
|
inlineoverridevirtual |
the default random number generator.
Build random float from unsigned number.
Reimplemented from GrayLib::cRandomFloat.
|
inlineoverridevirtual |
Get random number in scale. 0 to scale. unsigned integer is NON inclusive range. from 0 to nScale-1
output random integer get integer random number in desired interval
get random integer number in 0 to < nScale range NON inclusive default implementation.
Reimplemented from Gray::cRandomBase.
|
inlineoverridevirtual |
re-seed
Implements Gray::cRandomBase.
| _TYPE1 GrayLib::cRandomCombo2< _TYPE1, _TYPE2 >::m_r1 |
| _TYPE2 GrayLib::cRandomCombo2< _TYPE1, _TYPE2 >::m_r2 |