Open CASCADE Technology 7.8.2.dev
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.
 
Standard_Real 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()

Standard_Real 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: