Go to the documentation of this file.
66 #ifndef vtkMersenneTwister_h
67 #define vtkMersenneTwister_h
69 #include "vtkCommonCoreModule.h"
72 class vtkMersenneTwisterInternals;
91 SequenceId InitializeNewSequence(vtkTypeUInt32 seed,
int p=521);
99 void InitializeSequence(
SequenceId id, vtkTypeUInt32 seed,
int p=521);
118 virtual void Next(SequenceId
id);
131 vtkMersenneTwisterInternals* Internal;
138 #endif // #ifndef vtkMersenneTwister_h
Sequence of random numbers.
void Next() override
Move to the next number in random sequence <0>.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
double GetValue() override
Current value.
virtual double GetValue()=0
Current value.
virtual void Next()=0
Move to the next number in the random sequence.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Generator for Mersenne Twister pseudorandom numbers.