Comment Comment by spacechild1 This looks nice! One thing I find particularly noteworthy:- Faster uniform / normal distributions that produce same sequences on every platformThis is very useful if you want to reliably repeat simulations across platforms!One question: template<class T> constexpr T& rand_choice(std::initializer_list<T> objects) noexcept; Isn't this returning a reference to a local variable? In my understanding, 'objects' is destroyed when rand_choice() returns. parent spacechild1 1 year ago
- Faster uniform / normal distributions that produce same sequences on every platform
This is very useful if you want to reliably repeat simulations across platforms!
One question:
Isn't this returning a reference to a local variable? In my understanding, 'objects' is destroyed when rand_choice() returns.