Open hsloot opened 3 years ago
The current implementation of rmolib::random::uniform_int_distribution does not implement the standard in https://en.cppreference.com/w/cpp/numeric/random/uniform_int_distribution as it samples from [lower, upper) instead of [lower, upper].
rmolib::random::uniform_int_distribution
The distribution seems to be used such that the final algorithms are correct (i.e. if the C++ uniform_int_distribution would be used, they would not be correct anymore).
uniform_int_distribution
Description
The current implementation of
rmolib::random::uniform_int_distribution
does not implement the standard in https://en.cppreference.com/w/cpp/numeric/random/uniform_int_distribution as it samples from [lower, upper) instead of [lower, upper].The distribution seems to be used such that the final algorithms are correct (i.e. if the C++
uniform_int_distribution
would be used, they would not be correct anymore).