OCCT 8.0.1
OCCT documentation

Search guides and API reference

Enter at least two characters.

    Open CASCADE Technology Reference Manual 8.0.1
    math_BullardGenerator Class Reference

    Fast random number generator (the algorithm proposed by Ian C. Bullard). More...

    #include <math_BullardGenerator.hxx>

    Public Member Functions

     math_BullardGenerator (unsigned int theSeed=1)
     Creates new Xorshift 64-bit RNG.
    void SetSeed (unsigned int theSeed=1)
     Setup new seed / reset defaults.
    unsigned int NextInt ()
     Generates new 64-bit integer value.
    double NextReal ()
     Generates new floating-point value.

    Detailed Description

    Fast random number generator (the algorithm proposed by Ian C. Bullard).

    Constructor & Destructor Documentation

    ◆ math_BullardGenerator()

    math_BullardGenerator::math_BullardGenerator ( unsigned int theSeed = 1)
    inline

    Creates new Xorshift 64-bit RNG.

    Member Function Documentation

    ◆ NextInt()

    unsigned int math_BullardGenerator::NextInt ( )
    inline

    Generates new 64-bit integer value.

    ◆ NextReal()

    double math_BullardGenerator::NextReal ( )
    inline

    Generates new floating-point value.

    ◆ SetSeed()

    void math_BullardGenerator::SetSeed ( unsigned int theSeed = 1)
    inline

    Setup new seed / reset defaults.


    The documentation for this class was generated from the following file: