Open CASCADE Technology  6.9.1
Public Member Functions
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. More...
 
unsigned int NextInt ()
 Generates new 64-bit integer value. More...
 
Standard_Real NextReal ()
 Generates new floating-point value. More...
 

Detailed Description

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

Constructor & Destructor Documentation

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

Creates new Xorshift 64-bit RNG.

Member Function Documentation

unsigned int math_BullardGenerator::NextInt ( )
inline

Generates new 64-bit integer value.

Standard_Real math_BullardGenerator::NextReal ( )
inline

Generates new floating-point value.


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