Go to the documentation of this file.
66 #ifndef vtkMersenneTwister_h
67 #define vtkMersenneTwister_h
69 #include "vtkCommonCoreModule.h"
72 class vtkMersenneTwisterInternals;
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>.
double GetValue() override
Current value.
SequenceId InitializeNewSequence(vtkTypeUInt32 seed, int p=521)
Initialize a new Mersenne Twister sequence, given a) a <seed> and b) a Mersenne exponent (p s....
virtual double GetValue(SequenceId id)
Current value.
a simple class to control print indentation
~vtkMersenneTwister() override
virtual void Next(SequenceId id)
Move to the next number in random sequence <id>.
static vtkMersenneTwister * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void InitializeSequence(SequenceId id, vtkTypeUInt32 seed, int p=521)
Initialize a sequence as in InitializeNewSequence(), but additionally pass an id to associate with th...
Generator for Mersenne Twister pseudorandom numbers.