![]() |
Lightmetrica
0.0.1.50dbee3 (yosakoi)
|
#include <random.h>
Public Member Functions | |
| LM_COMPONENT_INTERFACE_DEF ("random") | |
| virtual unsigned int | NextUInt ()=0 |
| virtual void | SetSeed (unsigned int seed)=0 |
| virtual Random * | Clone () const =0 |
| LM_FORCE_INLINE Math::Float | Next () |
| LM_FORCE_INLINE Math::Vec2 | NextVec2 () |
Public Member Functions inherited from Component | |
| virtual std::string | ComponentInterfaceTypeName () const =0 |
| virtual std::string | ComponentImplTypeName () const =0 |
Public Member Functions inherited from SIMDAlignedType | |
| void * | operator new (std::size_t size) throw (std::bad_alloc) |
| void | operator delete (void *p) |
Random number generator. An interface for uniform random number generators.
|
pure virtual |
| LM_NAMESPACE_BEGIN LM_FORCE_INLINE Math::Float Random::Next | ( | ) |
Generate pseudorandom number as floating point type.
|
pure virtual |
Generate pseudorandom number as unsigned integer type.
Implemented in SFMTRandom, and StandardMTRandom.
| LM_FORCE_INLINE Math::Vec2 Random::NextVec2 | ( | ) |
Generate pseudorandom number as Vec2 type.
|
pure virtual |
Set seed and initialize internal state.
| seed | Seed. |
Implemented in SFMTRandom, and StandardMTRandom.
1.8.8