diff options
| author | Elizabeth Alexander Hunt <me@liz.coffee> | 2026-07-02 11:55:17 -0700 |
|---|---|---|
| committer | Elizabeth Alexander Hunt <me@liz.coffee> | 2026-07-02 11:55:17 -0700 |
| commit | 6bf4b90c90f15f4ab60833bddf5b5756d1a6b1f6 (patch) | |
| tree | ed97e39ec77c5231ffd2c394493e68d00ddac5a4 /Homework/cs3460/gameoflife/PatternRandom.hpp | |
| download | misc-undergrad-main.tar.gz misc-undergrad-main.zip | |
Diffstat (limited to 'Homework/cs3460/gameoflife/PatternRandom.hpp')
| -rw-r--r-- | Homework/cs3460/gameoflife/PatternRandom.hpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Homework/cs3460/gameoflife/PatternRandom.hpp b/Homework/cs3460/gameoflife/PatternRandom.hpp new file mode 100644 index 0000000..b89c949 --- /dev/null +++ b/Homework/cs3460/gameoflife/PatternRandom.hpp @@ -0,0 +1,19 @@ +#include "PatternSet.hpp" + +#include <random> + +#ifndef PATTERN_RANDOM_HPP + #define PATTERN_RANDOM_HPP + +class PatternRandom : public PatternSet +{ + private: + std::normal_distribution<double> m_distributionX; + std::normal_distribution<double> m_distributionY; + std::default_random_engine m_generator; + + public: + PatternRandom(std::uint8_t cols, std::uint8_t rows, float density); +}; + +#endif // PATTERN_RANDOM_HPP |
