I know that c++11 PRNG in <random> such as std::mt19937 are not usable in compile time, but access the __TIME__ preprocessor macro to implement the constexpr version of PRNG is possible, why std::sample/std::ranges::sample is not constexpr even in C++20?
<random>
std::mt19937
__TIME__
constexpr
std::sample
std::ranges::sample
2.1m questions
2.1m answers
60 comments
56.6k users