Open CASCADE Technology  7.0.0
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...
 
void SetSeed (unsigned int theSeed=1)
 Setup new seed / reset defaults. 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.

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: