First commit - Seems to pass "all 1's" evolution test

This commit is contained in:
2018-04-13 23:59:20 -07:00
parent 1ee1d3282b
commit 854ad5a1a3
13 changed files with 1231 additions and 0 deletions

41
Random.h Normal file
View File

@@ -0,0 +1,41 @@
//
#pragma once
//
#include <random>
//
namespace BitEvolver
{
//
class Random
{
//
public:
//
Random();
//
int GetInt(int min, int max);
double GetDouble(double min, double max);
double GetNormal(double mean, double standard_deviation);
//
bool RollBool(double chance);
//
private:
//
std::mt19937_64 generator_mersenne_twister;
//
void InitializeGenerators();
};
};