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.
 
 
 

42 lines
450 B

  1. //
  2. #pragma once
  3. //
  4. #include <random>
  5. //
  6. namespace BitEvolver
  7. {
  8. //
  9. class Random
  10. {
  11. //
  12. public:
  13. //
  14. Random();
  15. //
  16. int GetInt(int min, int max);
  17. double GetDouble(double min, double max);
  18. double GetNormal(double mean, double standard_deviation);
  19. //
  20. bool RollBool(double chance);
  21. //
  22. private:
  23. //
  24. std::mt19937_64 generator_mersenne_twister;
  25. //
  26. void InitializeGenerators();
  27. };
  28. };