1. 21 Aug, 2021 1 commit
    • salix5's avatar
      update RNG and uniform distribution (#391) · 3fe5cbdd
      salix5 authored
      DUEL_OLD_REPLAY
      The duel created by old replay files.
      It will use the original almost-uniform distribution.
      
      Random Number Generator
      C++11 has a built-in std::mersenne_twister_engine()
      It can be replaced by std::mt19937.
      
      class mt19937
      rand()
      mersenne_twister_engine std:mt19937
      
      get_random_integer()
      uniform_int_distribution based on std::mt19937
      
      shuffle_vector()
      Fisher–Yates shuffle based on get_random_integer()
      
      * update RNG and uniform distribution
      
      * add class mt19937
      
      * typos
      
      * avoid windows macro
      
      * fix rand()
      3fe5cbdd
  2. 18 Aug, 2021 1 commit
  3. 14 Aug, 2021 1 commit
  4. 13 Aug, 2021 1 commit
  5. 21 Jul, 2021 1 commit
  6. 29 Jun, 2021 1 commit
  7. 28 Jun, 2021 2 commits
  8. 13 Jun, 2021 1 commit
  9. 08 Jun, 2021 1 commit
  10. 03 Jun, 2021 1 commit
  11. 01 Jun, 2021 1 commit
  12. 16 May, 2021 2 commits
  13. 03 May, 2021 1 commit
  14. 01 May, 2021 1 commit
  15. 28 Apr, 2021 2 commits
  16. 17 Apr, 2021 1 commit
  17. 07 Apr, 2021 7 commits
  18. 06 Apr, 2021 2 commits
  19. 31 Mar, 2021 1 commit
  20. 25 Mar, 2021 2 commits
  21. 24 Mar, 2021 1 commit
  22. 16 Mar, 2021 2 commits
  23. 12 Mar, 2021 2 commits
  24. 11 Mar, 2021 1 commit
  25. 08 Mar, 2021 1 commit
  26. 28 Feb, 2021 1 commit
  27. 15 Feb, 2021 1 commit