STE-Industries: utilities testing
RandomGenerator.h
Go to the documentation of this file.
1 
13 # if !defined RANDOM_GENERATOR_H
14 
15 # define RANDOM_GENERATOR_H
16 
17 # include "SimpleRandomGenerator.h"
18 
19 namespace GraphicSpace
20 {
21 
30 
32  {
33  public:
34 
37  static constexpr unsigned int NUMBER_OF_GENERATORS =
38  29;
39 
42  static constexpr unsigned int MINIMUM_MODULE =
43  4273367641;
44 
45  private:
46 
51 
56 
57  public:
58 
59  RandomGenerator(void) noexcept;
60 
62  Argument) noexcept = default;
63 
65  Argument) noexcept = default;
66 
68  Argument) noexcept = default;
69 
71  noexcept = default;
72 
73  ~RandomGenerator(void) noexcept =
74  default;
75 
76  void SetSeed(const uint_fast32_t Seed
78  noexcept;
79 
80  void GetSeed(uint_fast32_t Seed
82  const noexcept;
83 
84  void ModifySeed(uint_fast32_t Value)
85  noexcept;
86 
87  uint_fast32_t Generate(uint_fast32_t Maximum)
88  noexcept;
89 
90  unsigned int Select(register const uint_fast32_t*
91  Probability,
92  unsigned int Elements) noexcept;
93 
94  };
95 
96 }
97 
98 # include "RandomGenerator.inl"
99 
100 # endif
GraphicSpace::RandomGenerator::NUMBER_OF_GENERATORS
static constexpr unsigned int NUMBER_OF_GENERATORS
Definition: RandomGenerator.h:37
GraphicSpace::RandomGenerator::MINIMUM_MODULE
static constexpr unsigned int MINIMUM_MODULE
Definition: RandomGenerator.h:42
GraphicSpace::RandomGenerator
Definition: RandomGenerator.h:31
GraphicSpace::RandomGenerator::Select
unsigned int Select(register const uint_fast32_t *Probability, unsigned int Elements) noexcept
Definition: RandomGenerator.inl:195
GraphicSpace::RandomGenerator::~RandomGenerator
~RandomGenerator(void) noexcept=default
GraphicSpace::SimpleRandomGenerator
Definition: SimpleRandomGenerator.h:31
GraphicSpace::RandomGenerator::Selector
SimpleRandomGenerator Selector
Definition: RandomGenerator.h:50
GraphicSpace::RandomGenerator::Generate
uint_fast32_t Generate(uint_fast32_t Maximum) noexcept
Definition: RandomGenerator.inl:160
GraphicSpace::RandomGenerator::RandomGenerator
RandomGenerator(void) noexcept
Definition: RandomGenerator.inl:29
SimpleRandomGenerator.h
GraphicSpace::RandomGenerator::GetSeed
void GetSeed(uint_fast32_t Seed[NUMBER_OF_GENERATORS+1]) const noexcept
Definition: RandomGenerator.inl:104
GraphicSpace::RandomGenerator::ModifySeed
void ModifySeed(uint_fast32_t Value) noexcept
Definition: RandomGenerator.inl:128
GraphicSpace
Definition: Bitmap.cpp:29
GraphicSpace::RandomGenerator::operator=
RandomGenerator & operator=(const RandomGenerator &Argument) noexcept=default
GraphicSpace::RandomGenerator::Generator
SimpleRandomGenerator Generator[NUMBER_OF_GENERATORS]
Definition: RandomGenerator.h:55
GraphicSpace::RandomGenerator::SetSeed
void SetSeed(const uint_fast32_t Seed[NUMBER_OF_GENERATORS+1]) noexcept
Definition: RandomGenerator.inl:80