|  | VTK
    9.0.1
    | 
 
 
 
Go to the documentation of this file.
   72 #ifndef vtkMersenneTwister_h 
   73 #define vtkMersenneTwister_h 
   75 #include "vtkCommonCoreModule.h"  
   78 class vtkMersenneTwisterInternals;
 
   98   void Initialize(vtkTypeUInt32 seed)
 override { this->InitializeSequence(0, seed); }
 
  107   SequenceId InitializeNewSequence(vtkTypeUInt32 seed, 
int p = 521);
 
  115   void InitializeSequence(SequenceId 
id, vtkTypeUInt32 seed, 
int p = 521);
 
  121   virtual double GetValue(SequenceId 
id);
 
  134   virtual void Next(SequenceId 
id);
 
  154 #endif // #ifndef vtkMersenneTwister_h 
  
Generate a 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.
void Initialize(vtkTypeUInt32 seed) override
Satisfy general API of vtkRandomSequence superclass.
virtual double GetValue()=0
Return the 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
vtkMersenneTwisterInternals * Internal
Generator for Mersenne Twister pseudorandom numbers.