Ocular Engine
WELL.hpp
1 
17 #pragma once
18 #ifndef __H__OCULAR_MATH_RANDOM_WELL__H__
19 #define __H__OCULAR_MATH_RANDOM_WELL__H__
20 
21 #include "ARandom.hpp"
22 
23 //------------------------------------------------------------------------------------------
24 
29 namespace Ocular
30 {
35  namespace Math
36  {
41  namespace Random
42  {
51  class WELL512 : public ARandom
52  {
53  public:
54 
55  WELL512();
56  ~WELL512();
57 
58  virtual void seed(int64_t seed);
59  virtual unsigned next();
60 
61  protected:
62 
63  private:
64 
65  unsigned m_Index;
66  unsigned long * m_State;
67  };
68  }
72  }
76 }
81 //------------------------------------------------------------------------------------------
82 
83 #endif
virtual unsigned next()
Definition: WELL.cpp:64
Note: Once this library is made dynamic, this will no longer be needed.
Definition: Common.hpp:70
Definition: WELL.hpp:51
void seed()
Definition: ARandom.cpp:52
Definition: ARandom.hpp:67