Use a genetic algorithm to evolve populations of bit strings.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

41 lines
450 B

//
#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();
};
};