Skip to content
Snippets Groups Projects
  • Robert Ricci's avatar
    8ee6e7f1
    Update assign to work with C++14 and up · 8ee6e7f1
    Robert Ricci authored
    Uses the std::shuffle() algorithm and Mersenne Twister that was
    introduced in C++11
    
    Make sure to initialize it with the same random seed used with plain ol'
    rand() so that we can still get deterministic behavior from assign when
    we want.
    8ee6e7f1
    History
    Update assign to work with C++14 and up
    Robert Ricci authored
    Uses the std::shuffle() algorithm and Mersenne Twister that was
    introduced in C++11
    
    Make sure to initialize it with the same random seed used with plain ol'
    rand() so that we can still get deterministic behavior from assign when
    we want.