This distribution is designed to be fast and consistent across platforms. However, it will not be uniform.
More...
#include <FastIntDistribution.hpp>
template<typename T>
class sl::FastIntDistribution< T >
This distribution is designed to be fast and consistent across platforms. However, it will not be uniform.
- Template Parameters
-
◆ FastIntDistribution()
Create a new FastIntDistribution which will result in numbers [min,max].
- Parameters
-
| min | The minimum number. |
| max | The maximum number. |
◆ operator()()
template<typename T>
template<class RNG >
Generate a number in the range of [min, max]. The distribution may not be uniform, particularily for larger ranges.
- Template Parameters
-
| RNG | The random engine type. |
- Parameters
-
- Returns
- A number in the range of [min, max].
The documentation for this class was generated from the following file: