TDefaultFloat


This template implements random number generator for floating point numbers.

You can find more information in comments below. Overrided methods can be found in corresponding base class.

template<class FLOAT>
class TDefaultFloat : public IRandomizer<FLOAT>
{
public:
    TDefaultFloat(const FLOAT min, const FLOAT max);
    TDefaultFloat(const FLOAT min, const FLOAT max, const unsigned int seed);

    FLOAT Generate() override;
    void setSeed(const unsigned int value);
    void setRandomSeed();
};
Namespace: nitisa::ai::randomizers
Include: Nitisa/Modules/AI/Randomizers.h