diff --git a/libs/openFrameworks/utils/ofUtils.h b/libs/openFrameworks/utils/ofUtils.h index 2e807588403..42074590ab4 100644 --- a/libs/openFrameworks/utils/ofUtils.h +++ b/libs/openFrameworks/utils/ofUtils.h @@ -13,6 +13,7 @@ #include #include #include +#include /// \section Elapsed Time /// \brief Reset the elapsed time counter. @@ -225,7 +226,8 @@ int ofGetWeekday(); /// \sa http://www.cplusplus.com/reference/algorithm/random_shuffle/ template void ofRandomize(std::vector& values) { - random_shuffle(values.begin(), values.end()); + //switch from random_shuffle ( removed in some C++17 impl ) + std::shuffle(values.begin(), values.end(), std::default_random_engine(0)); } /// \brief Conditionally remove values from a vector.